Example usage for Java javax.swing JColorChooser fields, constructors, methods, implement or subclass
The text is from its open source code.
JColorChooser() Creates a color chooser pane with an initial color of white. | |
JColorChooser(Color initialColor) Creates a color chooser pane with the specified initial color. | |
JColorChooser(ColorSelectionModel model) Creates a color chooser pane with the specified ColorSelectionModel . |
void | addChooserPanel(AbstractColorChooserPanel panel) Adds a color chooser panel to the color chooser. |
JDialog | createDialog(Component c, String title, boolean modal, JColorChooser chooserPane, ActionListener okListener, ActionListener cancelListener) Creates and returns a new dialog containing the specified ColorChooser pane along with "OK", "Cancel", and "Reset" buttons. |
AbstractColorChooserPanel[] | getChooserPanels() Returns the specified color panels. |
Color | getColor() Gets the current color value from the color chooser. |
ColorSelectionModel | getSelectionModel() Returns the data model that handles color selections. |
AbstractColorChooserPanel | removeChooserPanel(AbstractColorChooserPanel panel) Removes the Color Panel specified. |
void | setBorder(Border border) Sets the border of this component. |
void | setChooserPanels(AbstractColorChooserPanel[] panels) Specifies the Color Panels used to choose a color value. |
void | setColor(Color color) Sets the current color of the color chooser to the specified color. |
void | setColor(int c) Sets the current color of the color chooser to the specified color. |
void | setDragEnabled(boolean b) Sets the dragEnabled property, which must be true to enable automatic drag handling (the first part of drag and drop) on this component. |
void | setPreviewPanel(JComponent preview) Sets the current preview panel. |
Color | showDialog(Component component, String title, Color initialColor) Shows a modal color-chooser dialog and blocks until the dialog is hidden. |
void | updateUI() Notification from the UIManager that the L&F has changed. |