Labs/Lab3/app/src/main/java/lab3/ex2/UIApplication.java
<gh_stars>0package comp3111.lab3.ex2;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;

public class UIApplication extends Application {
	@Override
	public void start(Stage stage) throws Exception {
		FXMLLoader loader = new FXMLLoader();
		loader.setLocation(getClass().getResource("/ui.fxml"));
		VBox root = (VBox) loader.load();
		Scene scene = new Scene(root);
		stage.setScene(scene);
		stage.setTitle("Lab 3");
		stage.show();
	}

	public static void run(String arg[]) {
		Application.launch(arg);
	}
}
