The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

JFrame Menu bar errors.

I am trying to get a menubar for a number puzzle game i am working on.

Here is my code as of yet.

thats the code for the game. Im trying to mix in a lil bit of code for a menu bar to allow me to change the theme.

I know i need to implement action listeners for each theme and when that action is clicked i want to change the ThemeBC to 1 color using RGB r1,g1,b1 and ThemeF to a second color using r2,g2,b2. (but i want to be able to switch the theme by clicking a different 1 in the middle of a game and having it update. Any and all help would be appreciated as I would be taking up some of your time.

Re: JFrame Menu bar errors.

I do know that 2X2 is not displayed in the GUI Im leaving it as a easter egg because when i first started i only had the win statement on it so it could end up with you being forcibly stuck in the game.(I had messed up my code and set it as DO_NOTHING_ON_CLOSE so u had to go to the task manager to stop it. i fixed the close and put in a lose statement. but just decided to leave the 2x2 as off of the gui.