Hello Members,
I have a JFrame, which creates a JDialog upon clicking. In the JDialog, I have a JCombobox. When I choose one of the options in the JCombobox, I should be able to change the background color of the JFrame randomly in an open ended loop. When I then choose some other option in the JComboBox, the background color in the JFrame should change to some other fixed (not open ended) combination.
Can this be done in a JFrame/JDialog without using a JPanel(which has paintComponent())?
If anyone can help me, I would be grateful. Any code fragments will be very helpful.
Thank you!!
sciprog1