src/share/classes/javax/swing/colorchooser/DefaultSwatchChooserPanel.java
Print this page
@@ -264,12 +264,11 @@
}
}
}
-
-
+@SuppressWarnings("serial") // Same-version serialization only
class SwatchPanel extends JPanel {
protected Color[] colors;
protected Dimension swatchSize;
protected Dimension numSwatches;
@@ -436,10 +435,11 @@
}
+@SuppressWarnings("serial") // Superclass is not serializable across versions
class RecentSwatchPanel extends SwatchPanel {
protected void initValues() {
swatchSize = UIManager.getDimension("ColorChooser.swatchesRecentSwatchSize", getLocale());
numSwatches = new Dimension( 5, 7 );
gap = new Dimension(1, 1);
@@ -463,10 +463,11 @@
repaint();
}
}
+@SuppressWarnings("serial") // Superclass is not serializable across versions
class MainSwatchPanel extends SwatchPanel {
protected void initValues() {
swatchSize = UIManager.getDimension("ColorChooser.swatchesSwatchSize", getLocale());