Game/Application menu as a central part of the game/application
- by Javalicious
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?