CS3642-Artificial_Intelligence/src/main/java/Assignments/A1/GUIDriver.java
2024-02-11 01:39:33 -05:00

27 lines
701 B
Java

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);
scene.getStylesheets().add(getClass().getResource("A1/view/styles.css").toExternalForm());
stage.setTitle("JavaFX and Maven");
stage.setScene(scene);
stage.show();
}
public static void main(String[] args) {
launch(args);
}
}