1 7 8 package javax.swing.colorchooser; 9 10 import javax.swing.*; 11 12 13 14 31 public class ColorChooserComponentFactory { 32 33 private ColorChooserComponentFactory() { } 35 36 public static AbstractColorChooserPanel [] getDefaultChooserPanels() { 37 AbstractColorChooserPanel [] choosers = { new DefaultSwatchChooserPanel (), 38 new DefaultHSBChooserPanel (), 39 new DefaultRGBChooserPanel () }; 40 return choosers; 41 } 42 43 public static JComponent getPreviewPanel() { 44 return new DefaultPreviewPanel (); 45 } 46 47 } 48 | Popular Tags |