I'm not quite sure what you mean here, but my server is a GUI. I have an Exit button. I call System.exit(0); I have JFrame.EXIT_ON_CLOSE for the red X in the upper right hand corner. I'm thinking you might be over-complicating this.
I am having a problem like this one, what you mean is that you leave the server running as a GUI even when there is nothing inside the frame or you just pust a message saying "The server is running, close the window to shut down it", from an user perspective is this correct ? From a developer perspective this would make our life easier I believe
That's about how it is, Ulises. Mine is pretty similar to the one in Andrew's book. It displays "Server is Running" on a successful startup and connection to the data file. Server Gui not up, client throws an exception.