i've just started using java and im trying to develop a GUI that will play a game. i have a start screen with some Jbuttons. The button represent 3 sizes of the game grid, when these are pressed i want a a new frame to open ith the game grid. i've already writen the class containing the game grid, and need to know how to use the actionlistener to relate the initial class to the new class. Also depending on which button is pressed, will change the variable grid size. i imagine this would just be done with an if statement, but i cant try it until i know how to link the classes.
Any suggestions would be welcome
Thanx
Any suggestions would be welcome
Thanx
Comment