Hi!
I just had a quick question that I can't seem to find the answer to anywhere. My book isn't helping me much and I have no one to turn to for help.
Anyways, here's my question:
I want to make it so that when you click a Button in Java it changes the program to another class.
I have a GUI made up right now it looks something like this:
|----|----|
| 21| HM|
|----|----|
| M | M |
|----|----|
They're all games. 21 means the card game 21, HM means Hangman, M means memory, and the other M means matching.
Anyways, I have each little game in their own class and I want to make it so that when you click one of the buttons it loads that class. How can I achieve this? I've looked everywhere and I can't seem to find the answer.
Thanks!