Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. @FXML
  2. private void searchButton(ActionEvent event) {
  3.  
  4. URL fxmlUrl = this.getClass().getClassLoader()
  5. .getResource("resources/fxml/Search.fxml");
  6.  
  7. // Load the FXML document
  8. VBox root = null;
  9. try {
  10. root = FXMLLoader.<VBox> load(fxmlUrl);
  11. } catch (IOException e) {
  12. // TODO Auto-generated catch block
  13. e.printStackTrace();
  14. }
  15. Scene scene = new Scene(root);
  16. stage.setScene(scene);
  17. stage.setTitle("Hello FXML");
  18. stage.show();
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement