Advertisement
Guest User

Untitled

a guest
Dec 18th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 0.57 KB | None | 0 0
  1.  public void Connexion(ActionEvent actionEvent) {
  2.  
  3.         Parent root;
  4.         try {
  5.             root = FXMLLoader.load(getClass().getClassLoader().getResource("menu.fxml"));
  6.             Stage stage = new Stage();
  7.             stage.setTitle("dadouliCards");
  8.             stage.setScene(new Scene(root, 700, 400));
  9.             stage.show();
  10.             // Hide this current window (if this is what you want)
  11.             //  ((Node)(event.getSource())).getScene().getWindow().hide();
  12.         } catch (IOException e) {
  13.             e.printStackTrace();
  14.         }
  15.  
  16.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement