Skip to content
Snippets Groups Projects
ScheduleApp.java 862 B
Newer Older
  • Learn to ignore specific revisions
  • eyan_'s avatar
    eyan_ committed
    package com.example.schedulerapp;
    
    import javafx.application.Application;
    
    eyan_'s avatar
    eyan_ committed
    import javafx.fxml.FXMLLoader;
    
    eyan_'s avatar
    eyan_ committed
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.layout.BorderPane;
    import javafx.stage.Stage;
    
    public class ScheduleApp extends Application {
    
        @Override
        public void start(Stage stage) throws Exception {
            // just for now, not sure if using fxml or not?
            BorderPane root = new BorderPane();
    
    ArktikHunter's avatar
    ArktikHunter committed
            Label hello = new Label("Testing again :)");
    
    eyan_'s avatar
    eyan_ committed
            root.setCenter(hello);
    
    
    eyan_'s avatar
    eyan_ committed
            FXMLLoader fxmlLoader = new FXMLLoader(ScheduleApp.class.getResource("mainView.fxml"));
            Scene scene = new Scene(fxmlLoader.load(),500,500);
    
    eyan_'s avatar
    eyan_ committed
            stage.setTitle("Schedule App");
            stage.setScene(scene);
            stage.show();
        }
    
        public static void main(String[] args) {
            launch();
        }
    }