Added base start for javafx setup.

This commit is contained in:
Jonathan Turner 2024-02-11 01:39:33 -05:00
parent 53d046858f
commit 2714b23dab
4 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,26 @@
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);
}
}

View File

@ -0,0 +1,9 @@
package Assignments.A1;
public class GUILauncher {
public static void main(final String[] args) {
GUIDriver.main(args);
}
}

View File