Guest User

Untitled

a guest
Feb 20th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. public void start(Stage primaryStage) {
  2. ...
  3. Parent root = FXMLLoader.load(getClass().getResource("start.fxml"));
  4. primaryStage.show();
  5. ...
  6. }
  7.  
  8. ...
  9. @FXML
  10. public void menuItem1() {
  11. ...
  12. node = (Node) FXMLLoader.load(getClass().getResource("/Modules/module1.fxml"));
  13. ancorPaneMainFrame.getChildren().setAll(node);
  14. ...
  15. }
  16.  
  17. @FXML
  18. public void menuItem2() {
  19. ...
  20. node = (Node) FXMLLoader.load(getClass().getResource("/Modules/module2.fxml"));
  21. ancorPaneMainFrame.getChildren().setAll(node);
  22. ...
  23. }
  24.  
  25. @FXML
  26. public void saveAs() {
  27.  
  28. // здесь нужен доступ к полю objectList контроллера Module1Controller
  29. }
  30.  
  31. public void start(Stage primaryStage) {
  32. ...
  33. Parent root = FXMLLoader.load(getClass().getResource("start.fxml"));
  34. primaryStage.show();
  35. ...
  36. }
  37.  
  38. ...
  39. public List<Object> objectList;
  40. ...
Add Comment
Please, Sign In to add comment