Stage access the controller

37 views
Skip to first unread message

Ramon Almeida

unread,
Oct 20, 2015, 8:17:58 AM10/20/15
to DataFX
Hello,

How do I get all the stages are maximized?
I'm doing this:

Screen screen = Screen.getPrimary();
        javafx.geometry.Rectangle2D bounds = screen.getVisualBounds();
        primaryStage = stage;
        primaryStage.setX(bounds.getMinX());
        primaryStage.setY(bounds.getMinY());
        primaryStage.setWidth(bounds.getWidth());
        primaryStage.setHeight(bounds.getHeight());
        primaryStage.initStyle(StageStyle.UNDECORATED);
        primaryStage.show();
        new Flow(IndexController.class).startInStage(primaryStage);

Hello,

How do I get all the stages are maximized?
I'm doing this:

And in my IndexController I have aLinkAction to another screen, but this screen does not start maximized.

It has as I leave maximized with css? Or can access the Stage by the controller?

Thank you
Reply all
Reply to author
Forward
0 new messages