Should I create a new window or modify the old one?

Posted by Roman on Stack Overflow See other posts from Stack Overflow or by Roman
Published on 2010-03-21T12:31:32Z Indexed on 2010/03/21 12:41 UTC
Read the original article Hit count: 114

Filed under:
|
|

I am programming a GUI application in Java. I do it for the first time.

I would like to have a form (with radio buttons and so on). After the form is filled in and the "Submit" button is pressed I would like to have a new window. I see two potential ways to do it:

  1. Close the "old" window and open a "new" one.

  2. Remove "old" elements from the existing window and put there "new" elements.

What is the standard way to go? If it is the first way, what is the command to close the window? If it is the second one, how can I remove elements from the existing window?

© Stack Overflow or respective owner

Related posts about java

Related posts about gui