jdk/src/share/classes/javax/swing/colorchooser/ColorPanel.java
changeset 23697 e556a715949f
parent 23010 6dadb192ad81
equal deleted inserted replaced
23696:7deff68428ef 23697:e556a715949f
     1 /*
     1 /*
     2  * Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2008, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    37 import javax.swing.JPanel;
    37 import javax.swing.JPanel;
    38 import javax.swing.JRadioButton;
    38 import javax.swing.JRadioButton;
    39 import javax.swing.border.EmptyBorder;
    39 import javax.swing.border.EmptyBorder;
    40 import javax.swing.JSpinner.DefaultEditor;
    40 import javax.swing.JSpinner.DefaultEditor;
    41 
    41 
       
    42 @SuppressWarnings("serial") // Superclass is not serializable across versions
    42 final class ColorPanel extends JPanel implements ActionListener {
    43 final class ColorPanel extends JPanel implements ActionListener {
    43 
    44 
    44     private final SlidingSpinner[] spinners = new SlidingSpinner[5];
    45     private final SlidingSpinner[] spinners = new SlidingSpinner[5];
    45     private final float[] values = new float[this.spinners.length];
    46     private final float[] values = new float[this.spinners.length];
    46 
    47