Java Swing issue - Using color palette
I have a problem here - I have a hexadecimal value being stored in a textfield after I have selected a color (using JColorChooser). What I would like to do is display the name of the color in another textfield right beside the one with the hexadecimal value, but I am unsure as to how to get the color name? I am including my code, maybe someone can give me some useful hints: public class Main extends JComponent implements Accessible { public ColorSelectionModel selectionModel; public static final String SELECTION_MODEL_PROPERTY = "selectionModel"; public JColorChooser chooser; public Color