Hi, i have written small program that works with TCP/IP sockets. I am connecting to a server with call to a connect function right after super(app); initComponents(); in the constructor, and i'm catching IOException, that i am throwing in the function for the connection that i have written outside of the constructor. At the Exception handling, in the catch block, i'm creating (with object of the main class) another window with dialog for entering another IP and port with button for reconnecting. Now, after all that pass, and the connection is up, my main window isn't showing up, because, i think, of the error exception that has happened in the first try. The matter is that if the connection is up after first try (when my server application is up and running), all works fine. So my question is: How can i make something like Re-Initialization of the main window, or in other words, how to continue to load the application. I have tried to put initComponents() after try/catch block for the connection but it can't be done that way because the window that is invoked from the catch block is attached to the main frame.