Advertisement
Guest User

Untitled

a guest
Jul 31st, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. @Override
  2. public void start(Stage primaryStage) throws IOException {
  3.  
  4. this.PrimaryStage = primaryStage;
  5. MainWindow();
  6. }
  7.  
  8. public void MainWindow() throws IOException {
  9.  
  10. FXMLLoader loader = new FXMLLoader(Main.class.getResource("MainWindowView.fxml"));
  11. AnchorPane pane = loader.load();
  12. MainWindowsController mainWindowsController = loader.getController();
  13. Scene scene = new Scene(pane);
  14. PrimaryStage.setScene(scene);
  15. PrimaryStage.show();
  16.  
  17. }
  18.  
  19. /**
  20. * @param args the command line arguments
  21. */
  22. public static void main(String[] args) {
  23. launch(args);
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement