Lukas Resch
Lukas Resch

Reputation: 148

JavaFX custom titlebar

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

Answers (1)

trilogy
trilogy

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

Related Questions