I have a Applet game, and it consists of a Applet class for the game, and a regular drawpanel
class for the graphics. I wanted to use a third class to have a main menu, that had several JButton
s to direct to other class I want to make, but more importantly to open the Applet
game class. Does the Menu
Class have to be an Applet
? I wouldn't think it would, but if not, how could I use a line of code similar to
Pacman g = new Pacman();
To open a Applet class?
Thank You!
(I don't have many years of programming under my belt, as I am just a tenth grade student in AP Computer Science)