I've been working quite a bit on a game, not too fancy, and i was wondering on what the best way to make a menu screen would be. I am currently using a single JPanel as the foundation for
"painting." I was wondering what the best way to implement Menu Screens etc. would be.
What I thought of so far:
a) Have the current JPanel take care of the Menu screen.
b) Make new JPanels for them and swap them to the next one; ex: If i hit the new game option, then switch to a new JPanel that holds the Game setup.
Extra Question:
Is it better to us a Canvas or some other component over a JPanel, given play-ability on an Applet and an Application was a concern?
Thanks!