thread = new Thread(this, NAME + "_main");
thread.start();
if (!isApplet) {
if (JOptionPane.showConfirmDialog(this, "Do you want to run the server") == 0) {
socketServer = new GameServer(this);
socketServer.start();
}
socketClient = new GameClient(this, "localhost");
socketClient.start();