Many links are changed in javatpoint. If any link is not working, please delete the cookie of your browser and refresh the page.

91-9990449935

 0120-4256464

JColorChooser class:

The JColorChooser class is used to create a color chooser dialog box so that user can select any color.

Commonly used Constructors of JColorChooser class:

  • JColorChooser(): is used to create a color chooser pane with white color initially.
  • JColorChooser(Color initialColor): is used to create a color chooser pane with the specified color initially.

Commonly used methods of JColorChooser class:

public static Color showDialog(Component c, String title, Color initialColor): is used to show the color-chooser dialog box.

Example of JColorChooser class:

JColorChooser example
Next TopicJProgressBar class