I am trying to have one class open by default, and then when I click a Swing button I would like to have the other form run. I used to use Visual basic and it was so simple:
Form2.Show()
and
Form2.Hide()
But in Java, I can’t find anything like that. Is there any way to do this easily?
Thanks!
Study the following to see how pressing a button causes a new frame to display.