Greetings All,
I'm having some problems getting the background color to change.
I have a guiClass that extends JFrame and implements ActionListener (once "implements" was spelled correctly). my main program basically just makes a guiClass object.
i have been trying to use
setBackground(Color.red); but it is not working. i tried
this.setBackground(Color.red) but it didn't work.
I have tried setting the background color in the constructor as well as in a method. Is it something do with JFrame? Am I using the wrong method? any hints as to how I can find out?
this is the last program for a
Java class I'm taking at school. I didn't post all my code, since its for a class. I've been able to figure out the rest of the program on my own.