27 lines
701 B
Java
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);
|
||
|
}
|
||
|
}
|