< prev index next >

src/java.desktop/share/classes/javax/swing/JColorChooser.java

Print this page
rev 60127 : 8249205: Remove unnecessary trademark symbols


  52  * <li>A static convenience method which shows a modal color-chooser
  53  * dialog and returns the color selected by the user.
  54  * <li>A static convenience method for creating a color-chooser dialog
  55  * where <code>ActionListeners</code> can be specified to be invoked when
  56  * the user presses one of the dialog buttons.
  57  * <li>The ability to create instances of <code>JColorChooser</code> panes
  58  * directly (within any container). <code>PropertyChange</code> listeners
  59  * can be added to detect when the current "color" property changes.
  60  * </ol>
  61  * <p>
  62  * <strong>Warning:</strong> Swing is not thread safe. For more
  63  * information see <a
  64  * href="package-summary.html#threading">Swing's Threading
  65  * Policy</a>.
  66  * <p>
  67  * <strong>Warning:</strong>
  68  * Serialized objects of this class will not be compatible with
  69  * future Swing releases. The current serialization support is
  70  * appropriate for short term storage or RMI between applications running
  71  * the same version of Swing.  As of 1.4, support for long term storage
  72  * of all JavaBeans&trade;
  73  * has been added to the <code>java.beans</code> package.
  74  * Please see {@link java.beans.XMLEncoder}.
  75  *
  76  * @author James Gosling
  77  * @author Amy Fowler
  78  * @author Steve Wilson
  79  * @since 1.2
  80  */
  81 @JavaBean(defaultProperty = "UI", description = "A component that supports selecting a Color.")
  82 @SwingContainer(false)
  83 @SuppressWarnings("serial") // Same-version serialization only
  84 public class JColorChooser extends JComponent implements Accessible {
  85 
  86     /**
  87      * @see #getUIClassID
  88      * @see #readObject
  89      */
  90     private static final String uiClassID = "ColorChooserUI";
  91 
  92     private ColorSelectionModel selectionModel;




  52  * <li>A static convenience method which shows a modal color-chooser
  53  * dialog and returns the color selected by the user.
  54  * <li>A static convenience method for creating a color-chooser dialog
  55  * where <code>ActionListeners</code> can be specified to be invoked when
  56  * the user presses one of the dialog buttons.
  57  * <li>The ability to create instances of <code>JColorChooser</code> panes
  58  * directly (within any container). <code>PropertyChange</code> listeners
  59  * can be added to detect when the current "color" property changes.
  60  * </ol>
  61  * <p>
  62  * <strong>Warning:</strong> Swing is not thread safe. For more
  63  * information see <a
  64  * href="package-summary.html#threading">Swing's Threading
  65  * Policy</a>.
  66  * <p>
  67  * <strong>Warning:</strong>
  68  * Serialized objects of this class will not be compatible with
  69  * future Swing releases. The current serialization support is
  70  * appropriate for short term storage or RMI between applications running
  71  * the same version of Swing.  As of 1.4, support for long term storage
  72  * of all JavaBeans
  73  * has been added to the <code>java.beans</code> package.
  74  * Please see {@link java.beans.XMLEncoder}.
  75  *
  76  * @author James Gosling
  77  * @author Amy Fowler
  78  * @author Steve Wilson
  79  * @since 1.2
  80  */
  81 @JavaBean(defaultProperty = "UI", description = "A component that supports selecting a Color.")
  82 @SwingContainer(false)
  83 @SuppressWarnings("serial") // Same-version serialization only
  84 public class JColorChooser extends JComponent implements Accessible {
  85 
  86     /**
  87      * @see #getUIClassID
  88      * @see #readObject
  89      */
  90     private static final String uiClassID = "ColorChooserUI";
  91 
  92     private ColorSelectionModel selectionModel;


< prev index next >