JOptionPane.ERROR_MESSAGE);
} else {
String name = serverName.getText();
final String host = serverHost.getText();
final int port = Integer.parseInt(serverPort.getText().replaceAll("[^0-9]", ""));
QueryVersion qv = null;
final ProgressDialog dialog = new ProgressDialog(Language.INSTANCE.localize("tools.serverchecker" + "" +
".checkingserver"), 0, Language.INSTANCE.localize("tools.serverchecker.checkingserver"),
"Cancelled Server Check!");
dialog.addThread(new Thread() {