1

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!

Lukas Resch
  • 148
  • 15

1 Answers1

1
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

trilogy
  • 1,738
  • 15
  • 31
  • 1
    Do you know a way to use the standard native Buttons from the OS and just customize the rest? Like whatsapp(on mac), firefox and chrome do? – Lukas Resch Jul 30 '18 at 18:36