Possibility to add a stylesheet to a flow

72 views
Skip to first unread message

sebastian.jo...@gmail.com

unread,
Mar 30, 2015, 12:46:48 AM3/30/15
to dataf...@googlegroups.com
Hello,

is there a possibility to add a stylesheet to the scene when starting a Flow with startInStage(Stage stage)? Or is my approach wrong?

Bye
Sebastian
Message has been deleted

sebastian.jo...@gmail.com

unread,
Mar 30, 2015, 5:36:14 AM3/30/15
to dataf...@googlegroups.com
        Scene scene = new Scene(new Flow(LoginController.class).start(), APPLICATION_WIDTH, APPLICATION_HEIGHT);
        scene
.getStylesheets().add("stylesheet.css");
        stage
.setTitle("my title");
        stage
.setScene(scene);
        stage
.show();

This is my current solution to set an stylesheet with using datafx-flow.

Hendrik Ebbers

unread,
Mar 30, 2015, 5:57:49 AM3/30/15
to dataf...@googlegroups.com
Hi,

this is the right way. It should work.

sebastian.jo...@gmail.com

unread,
Mar 30, 2015, 7:50:11 AM3/30/15
to dataf...@googlegroups.com
Okay thanks!
Reply all
Reply to author
Forward
0 new messages