Reputation: 148
I want to create an application which uses the titlebar of a frame like Firefox does (space on top is used, except the 3 standard-buttons).
Is there any way I could archive this with JavaFX ?
Thank you already!
Upvotes: 1
Views: 1547
Reputation: 1795
primaryStage.initStyle(StageStyle.UNDECORATED);
Set your stage without platform decorations, then create your own HBox for your buttons etc...
then use this answer to allow your app to move around:
http://stackoverflow.com/questions/11780115/moving-an-undecorated-stage-in-javafx-2
Upvotes: 1