|
|
|
|
@ -12,6 +12,7 @@ import javafx.stage.WindowEvent;
|
|
|
|
|
import visualiser.Controllers.MainController;
|
|
|
|
|
|
|
|
|
|
public class App extends Application {
|
|
|
|
|
private static Stage stage;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Entry point for running the programme
|
|
|
|
|
@ -37,7 +38,7 @@ public class App extends Application {
|
|
|
|
|
});
|
|
|
|
|
FXMLLoader loader = new FXMLLoader(getClass().getResource("/visualiser/scenes/main.fxml"));
|
|
|
|
|
Parent root = loader.load();
|
|
|
|
|
// stage.setResizable(false);
|
|
|
|
|
stage.setResizable(false);
|
|
|
|
|
MainController mc = (MainController) loader.getController();
|
|
|
|
|
mc.enterTitle();
|
|
|
|
|
Scene scene = new Scene(root);
|
|
|
|
|
@ -46,6 +47,15 @@ public class App extends Application {
|
|
|
|
|
stage.setTitle("RaceVision - Team 7");
|
|
|
|
|
stage.getIcons().add(new Image(getClass().getClassLoader().getResourceAsStream("images/SailIcon.png")));
|
|
|
|
|
mc.startCss();
|
|
|
|
|
setStage(stage);
|
|
|
|
|
stage.show();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static Stage getStage() {
|
|
|
|
|
return App.stage;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void setStage(Stage stage) {
|
|
|
|
|
App.stage = stage;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|