I'm trying to work on a project - we are creating a little game with a GUI. I decided to start by working on a 'main menu'. Essentially, there will be buttons such as "Single Player", "Help", etc...
I've made the GUI with the menu, etc. I have added listeners as well.
How do I approach the problem now? If someone clicks, say, 'Single Player', I'd like the screen to change to display a title showing "SINGLE PLAYER" and get rid of the main menu.
What do I need to do in my actionPerformed()
method to get this effect?
I guess I will be able to work it out from there.
Any help would be greatly appreciated.