Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void start(Stage stage) throws Exception {
- AnchorPane root = (AnchorPane)FXMLLoader.load(getClass().getResource("main.fxml"));
- Scene scene = new Scene(root);
- scene.getStylesheets().add(getClass().getResource("main.css").toExternalForm());
- stage.setTitle("Calculator");
- stage.setOnCloseRequest(x -> {
- Platform.exit();
- });
- stage.setScene(scene);
- stage.show();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement