src/share/classes/javax/swing/colorchooser/DefaultSwatchChooserPanel.java
Print this page
*** 264,275 ****
}
}
}
!
!
class SwatchPanel extends JPanel {
protected Color[] colors;
protected Dimension swatchSize;
protected Dimension numSwatches;
--- 264,274 ----
}
}
}
! @SuppressWarnings("serial") // Same-version serialization only
class SwatchPanel extends JPanel {
protected Color[] colors;
protected Dimension swatchSize;
protected Dimension numSwatches;
*** 436,445 ****
--- 435,445 ----
}
+ @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,472 ****
--- 463,473 ----
repaint();
}
}
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
class MainSwatchPanel extends SwatchPanel {
protected void initValues() {
swatchSize = UIManager.getDimension("ColorChooser.swatchesSwatchSize", getLocale());