Java javax.swing JColorChooser fields, constructors, methods, implement or subclass

Example usage for Java javax.swing JColorChooser fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing JColorChooser.

The text is from its open source code.

Constructor

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.

Method

voidaddChooserPanel(AbstractColorChooserPanel panel)
Adds a color chooser panel to the color chooser.
JDialogcreateDialog(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.
ColorgetColor()
Gets the current color value from the color chooser.
ColorSelectionModelgetSelectionModel()
Returns the data model that handles color selections.
AbstractColorChooserPanelremoveChooserPanel(AbstractColorChooserPanel panel)
Removes the Color Panel specified.
voidsetBorder(Border border)
Sets the border of this component.
voidsetChooserPanels(AbstractColorChooserPanel[] panels)
Specifies the Color Panels used to choose a color value.
voidsetColor(Color color)
Sets the current color of the color chooser to the specified color.
voidsetColor(int c)
Sets the current color of the color chooser to the specified color.
voidsetDragEnabled(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.
voidsetPreviewPanel(JComponent preview)
Sets the current preview panel.
ColorshowDialog(Component component, String title, Color initialColor)
Shows a modal color-chooser dialog and blocks until the dialog is hidden.
voidupdateUI()
Notification from the UIManager that the L&F has changed.