Game/Application menu as a central part of the game/application
Posted
by Javalicious
on Stack Overflow
See other posts from Stack Overflow
or by Javalicious
Published on 2010-06-08T13:15:45Z
Indexed on
2010/06/08
17:22 UTC
Read the original article
Hit count: 591
I am developing a Java application, well, it's actually a small game. I want to build up the application as follows: when it starts, a window should appear which has a menu with four choices: 'Start game', 'Options', 'Highscores' and 'Quit'. If you then click game, the game starts, preferrably in the same window, if you click options, well you know the drill.
How should I program this? At the moment, I'm considering using a CardLayout, but I'm not sure this is the right way to do this.
Do you guys maybe have another proposition?
© Stack Overflow or respective owner