Reinstantiating a GUI (JFrame) object

Posted by Alex on Stack Overflow See other posts from Stack Overflow or by Alex
Published on 2010-04-24T17:14:26Z Indexed on 2010/04/24 17:23 UTC
Read the original article Hit count: 233

Filed under:
|
|
|
|

Hi guys, basically I want my JFrame to become a completely new JFrame object when an event is triggered. I have some code that basically calls [CODE]GUI gui = new GUI(x, y)[/CODE] the only problem I'm having is that as well as creating the new GUI object, it is not deleting the old window. Can anyone tell me how to get rid of the old window.

Thanks.

© Stack Overflow or respective owner

Related posts about jframe

Related posts about gui