Question about JPanel "transition" for Java Swing

Posted by user16778 on Game Development See other posts from Game Development or by user16778
Published on 2012-06-03T00:21:23Z Indexed on 2012/06/03 4:49 UTC
Read the original article Hit count: 268

Filed under:
|

I want to make like a sort of main menu (in GUI).
When the user clicks the start button, the screen transition into another "screen" (JPanel). This image will make it easier to understand.
http://i.imgur.com/Cfdry.png

Currently, I have a MainMenu extends JPanel and that gets added into a driver class with a JFrame. I can't figure how to switch to another class like Game extends JPanel.
So when the user clicks the start button in MainMenu, I want it to somehow hide itself and the Game to show itself.
Thanks.

© Game Development or respective owner

Related posts about java

Related posts about graphics