Skip to content
Snippets Groups Projects
ScheduleApp.java 773 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 {
    
            Controller controller = new Controller();
    
    Mitch Cumpstone (cmc408)'s avatar
    Mitch Cumpstone (cmc408) committed
            FXMLLoader fxmlLoader = new FXMLLoader(ScheduleApp.class.getResource("login.fxml"));
    
            fxmlLoader.setController(controller);
    
    
    Mitch Cumpstone (cmc408)'s avatar
    Mitch Cumpstone (cmc408) committed
            Scene scene = new Scene(fxmlLoader.load(),800,600);
            stage.setTitle("Scheduler App");
    
    eyan_'s avatar
    eyan_ committed
            stage.setScene(scene);
            stage.show();
        }
    
        public static void main(String[] args) {
            launch();
        }
    }