919293949596979899
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(); } }