CS3642-Artificial_Intelligence/src/main/java/Assignments/A1/GUIDriver.java

27 lines
725 B
Java
Raw Normal View History

2024-02-11 06:39:33 +00:00
package Assignments.A1;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class GUIDriver extends Application {
@Override
public void start(Stage stage) throws Exception {
Parent root = FXMLLoader.load(getClass().getResource("/A1/view/BoardView.fxml"));
Scene scene = new Scene(root);
2024-02-11 08:38:32 +00:00
scene.getStylesheets().add(getClass().getResource("/A1/view/styles.css").toExternalForm());
2024-02-11 06:39:33 +00:00
2024-02-11 08:38:32 +00:00
stage.setTitle("Jonathan Turner - CS3642 - Assignment 1");
2024-02-11 06:39:33 +00:00
stage.setScene(scene);
stage.show();
}
public static void main(String[] args) {
launch(args);
}
}