209210211212213214215216217218219
serverPort = -1; } // If valid serverPort is entered when button is pressed, dispose if(serverPort != -1) { controller.fireServerClientInfoEvent(new ServerClientInfoEvent(this, true, serverIP, serverPort, numPlayers)); jfrm.dispose(); return; } } });
324325326327328329330331332333334
try { serverIP = InetAddress.getByAddress(ipAsBytes); } catch (UnknownHostException e) { e.printStackTrace(); } controller.fireServerClientInfoEvent(new ServerClientInfoEvent(this, false, serverIP, serverPort, -1)); jfrm.dispose(); return; } } });