Search in sources :

Example 1 with Controller

use of src.controller.Controller in project Labyrinthe3d by FauconFan.

the class Main method start.

@Override
public void start(Stage primaryStage) {
    Rectangle2D primaryScreenBounds = Screen.getPrimary().getVisualBounds();
    primaryStage.setX(primaryScreenBounds.getMinX());
    primaryStage.setY(primaryScreenBounds.getMinY());
    primaryStage.setWidth(primaryScreenBounds.getWidth());
    primaryStage.setHeight(primaryScreenBounds.getHeight());
    Controller c = new Controller();
    View v = new View(primaryStage, c);
    c.initView(v);
}
Also used : Rectangle2D(javafx.geometry.Rectangle2D) Controller(src.controller.Controller) View(src.view.View)

Aggregations

Rectangle2D (javafx.geometry.Rectangle2D)1 Controller (src.controller.Controller)1 View (src.view.View)1