I am a Beginners Java class and am having a lot of trouble on this assignment. Any and all help is greatly appreciated.
We are to write a program that displays a window derived from a JFrame. The JFrame should have Border layout and a JPanel in the center of the JFrame. There should be two fixed buttons on the JPanel measuring at 200px by 150 px. When a button is pressed, its color should change. The colors should cycle through five different colors, with the fifth button press cycling back to the original color.
We also need a menu of colors used for button one, which, when chosen, will change button two's color. Clicking button two will change it back to the original color.
This is what I have so far:
http://pastebin.com/vMqh4ZX2
Again, I am really, really confused, so any and ALL help is appreciated. Thank you!
We are to write a program that displays a window derived from a JFrame. The JFrame should have Border layout and a JPanel in the center of the JFrame. There should be two fixed buttons on the JPanel measuring at 200px by 150 px. When a button is pressed, its color should change. The colors should cycle through five different colors, with the fifth button press cycling back to the original color.
We also need a menu of colors used for button one, which, when chosen, will change button two's color. Clicking button two will change it back to the original color.
This is what I have so far:
http://pastebin.com/vMqh4ZX2
Again, I am really, really confused, so any and ALL help is appreciated. Thank you!