java swing color picker example Example: jcolorchooser in java Color choice = JColorChooser.showDialog(this,"Select a color",initialcolor);