Right now, I am using NetBeans 5.5 and I am confused about the internal frames. I have a main frame that has a JDesktopPane inside of it. Inside this JDesktopPane I have one JInternalFrame. This JInternalFrame is supposed to be used for order entry so once the user clicks the Submit Order button, the screen should clear and dispose. When the user wants to enter a new order it should instantiate a new internal frame so the old data is cleared out of the box and a fresh form is available to the user. How can I do this so that when the user wants to enter a new order, a new instance of the internal frame is available to the user instead of just setting the internal frame from visible = false to visible = true where the data is still there? Do I just have to clear all of the fields when the user hits the submit button and set the form visibility to false once they submit the order?