|
|
@ -59,6 +59,7 @@ public class LoginWindow extends Application { |
|
|
|
ChatWindow chatWindow = new ChatWindow(servernameAndPort[0], usernameTextField.getText(), socket, this); |
|
|
|
Stage chatWindowStage = new Stage(); |
|
|
|
chatWindow.start(chatWindowStage); |
|
|
|
stage.hide(); |
|
|
|
} |
|
|
|
} catch (NumberFormatException nfe) { |
|
|
|
Alert alert = new Alert(Alert.AlertType.ERROR); |
|
|
@ -78,7 +79,6 @@ public class LoginWindow extends Application { |
|
|
|
} catch (IOException e) { |
|
|
|
e.printStackTrace(); |
|
|
|
} |
|
|
|
stage.hide(); |
|
|
|
}); |
|
|
|
|
|
|
|
root.getChildren().addAll(servernameLabel, servernameTextField, usernameLabel, usernameTextField, connectButton); |
|
|
|