I have a ColorChooser panel, how can I make that appear when I click a JButton in my program?
EDIT:
I want to make it appear in a new frame that is resizable, movable and closable.
I have a ColorChooser panel, how can I make that appear when I click
Share
You need to write an ActionListener for your JButton.
Something like this:
Take a look at the Java tutorials of How to write an ActionListener. Look at the really big index in there to see basic tutorials about java in general.