Multiple Menu Program
I want to create a program in Java, and I am using JFrames for my GUI. What the program does is that it has some buttons on a JFrame and each button does an event. One of this buttons has to lead in a new menu.
I have decided that the best way to do this is to create two JFrames, set the one to visible (i.e. setVisible(true)) and the other one invisible (i.e setVisible(false))
When I press on the button I want the first frame to become invisible and the second one visible so I will be able to view the new menu.
Is there any way to do this? If you want my code so far I can post it here, just let me know guys.