Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void Connexion(ActionEvent actionEvent) {
- Parent root;
- try {
- root = FXMLLoader.load(getClass().getClassLoader().getResource("menu.fxml"));
- Stage stage = new Stage();
- stage.setTitle("dadouliCards");
- stage.setScene(new Scene(root, 700, 400));
- stage.show();
- // Hide this current window (if this is what you want)
- // ((Node)(event.getSource())).getScene().getWindow().hide();
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement