1. /*
  2. * @(#)ColorChooserComponentFactory.java 1.13 00/02/02
  3. *
  4. * Copyright 1998-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package javax.swing.colorchooser;
  11. import javax.swing.*;
  12. /**
  13. * A class designed to produce preconfigured "accessory" objects to
  14. * insert into color choosers.
  15. *
  16. * <p>
  17. * <strong>Warning:</strong>
  18. * Serialized objects of this class will not be compatible with
  19. * future Swing releases. The current serialization support is appropriate
  20. * for short term storage or RMI between applications running the same
  21. * version of Swing. A future release of Swing will provide support for
  22. * long term persistence.
  23. *
  24. * @version 1.13 02/02/00
  25. * @author Steve Wilson
  26. */
  27. public class ColorChooserComponentFactory {
  28. private ColorChooserComponentFactory() { } // can't instantiate
  29. public static AbstractColorChooserPanel[] getDefaultChooserPanels() {
  30. AbstractColorChooserPanel[] choosers = { new DefaultSwatchChooserPanel(),
  31. new DefaultHSBChooserPanel(),
  32. new DefaultRGBChooserPanel() };
  33. return choosers;
  34. }
  35. public static JComponent getPreviewPanel() {
  36. return new DefaultPreviewPanel();
  37. }
  38. }