equal
deleted
inserted
replaced
264 } |
264 } |
265 } |
265 } |
266 |
266 |
267 } |
267 } |
268 |
268 |
269 |
269 @SuppressWarnings("serial") // Same-version serialization only |
270 |
|
271 class SwatchPanel extends JPanel { |
270 class SwatchPanel extends JPanel { |
272 |
271 |
273 protected Color[] colors; |
272 protected Color[] colors; |
274 protected Dimension swatchSize; |
273 protected Dimension swatchSize; |
275 protected Dimension numSwatches; |
274 protected Dimension numSwatches; |
436 |
435 |
437 |
436 |
438 |
437 |
439 } |
438 } |
440 |
439 |
|
440 @SuppressWarnings("serial") // Superclass is not serializable across versions |
441 class RecentSwatchPanel extends SwatchPanel { |
441 class RecentSwatchPanel extends SwatchPanel { |
442 protected void initValues() { |
442 protected void initValues() { |
443 swatchSize = UIManager.getDimension("ColorChooser.swatchesRecentSwatchSize", getLocale()); |
443 swatchSize = UIManager.getDimension("ColorChooser.swatchesRecentSwatchSize", getLocale()); |
444 numSwatches = new Dimension( 5, 7 ); |
444 numSwatches = new Dimension( 5, 7 ); |
445 gap = new Dimension(1, 1); |
445 gap = new Dimension(1, 1); |
463 repaint(); |
463 repaint(); |
464 } |
464 } |
465 |
465 |
466 } |
466 } |
467 |
467 |
|
468 @SuppressWarnings("serial") // Superclass is not serializable across versions |
468 class MainSwatchPanel extends SwatchPanel { |
469 class MainSwatchPanel extends SwatchPanel { |
469 |
470 |
470 |
471 |
471 protected void initValues() { |
472 protected void initValues() { |
472 swatchSize = UIManager.getDimension("ColorChooser.swatchesSwatchSize", getLocale()); |
473 swatchSize = UIManager.getDimension("ColorChooser.swatchesSwatchSize", getLocale()); |