try {
RemoteTransmitter transmitter = room.serverCurrentConsole().remoteTransmitter();
String portString = serverPortTf.getText().trim();
try {
if (portString.isEmpty()) transmitter.start();
else transmitter.start(Integer.valueOf(portString));
} catch (NumberFormatException e) {
throw new IllegalArgumentException("Invalid port number: " + portString);
}
} catch (Exception ex) {
JOptionPane.showMessageDialog(null, "Could not start Server:\n" + ex, "javatari P1 Server", JOptionPane.ERROR_MESSAGE);