Reputation: 177
I want to make a window like eclipse loading by javafx without the bar ,
what I can do !!?
this loading screen
Upvotes: 2
Views: 2597
Reputation: 732
Just use this line. You won't see any title bar in your application.
stage.initStyle(StageStyle.UNDECORATED);
Upvotes: 2
Reputation: 60
hihi,
you could try this:
@Override
public void start(Stage primaryStage) {
try {
BorderPane root = new BorderPane();
Scene scene = new Scene(root,400,400);
scene.getStylesheets().add(getClass().getResource("application.css").toExternalForm());
primaryStage.initStyle(StageStyle.UNDECORATED);
scene.setFill(Color.BLACK);
primaryStage.setScene(scene);
primaryStage.show();
} catch(Exception e) {
e.printStackTrace();
}
}
Upvotes: 1