how do i close a frame yet open a new frame?(revisited)

Posted by altvali on Stack Overflow See other posts from Stack Overflow or by altvali
Published on 2010-05-31T20:33:10Z Indexed on 2010/05/31 21:03 UTC
Read the original article Hit count: 192

Filed under:
|

I'm new at Java and I'm trying to do what the title says, my application has page A, a jpanel with some controls and a specific button, and when the user clicks the button i want page A to disappear and page B to appear (page B has controls that depend on the choices that are made by the user on page A).

This has been asked before but there was no satisfactory answer. In the ActionListener implementation, namely public void ActionPerformed(ActionEvent e) from my jpanelForPageA class i can comfortably write this.setVisible(false), but how can i set page B to a visible state?

© Stack Overflow or respective owner

Related posts about java

Related posts about awt