Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void start(Stage primaryStage) throws IOException {
- this.PrimaryStage = primaryStage;
- MainWindow();
- }
- public void MainWindow() throws IOException {
- FXMLLoader loader = new FXMLLoader(Main.class.getResource("MainWindowView.fxml"));
- AnchorPane pane = loader.load();
- MainWindowsController mainWindowsController = loader.getController();
- Scene scene = new Scene(pane);
- PrimaryStage.setScene(scene);
- PrimaryStage.show();
- }
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- launch(args);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement