Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package HomePlanner;
- import javafx.application.Application;
- import javafx.fxml.FXML;
- import javafx.fxml.FXMLLoader;
- import javafx.scene.Parent;
- import javafx.scene.Scene;
- import javafx.scene.layout.AnchorPane;
- import javafx.stage.Stage;
- public class Main extends Application {
- Parent root;
- @Override
- public void start(Stage primaryStage) throws Exception{
- FXMLLoader loader = new FXMLLoader(getClass().getResource("ExpensesOverview.fxml"));
- Parent root = loader.load();
- Controller myController = loader.getController();
- myController.initialize();
- Scene scene = new Scene(root);
- primaryStage.setScene(scene);
- primaryStage.show();
- primaryStage.sizeToScene();
- }
- public static void main(String[] args) {
- launch(args);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment