DD.
DD.

Reputation: 21981

JavaFX 2 Titlebar color

How can I change the color of the title bar in javafx 2 desktop app?

Upvotes: 1

Views: 1634

Answers (1)

Sergey Grinev
Sergey Grinev

Reputation: 34498

Area of the window there title is written is controlled by OS. OS manages it's color, active/passive state, close-minimize buttons, etc. and FX has no API to handle that.

You may opt to create your own titlebar by using Stage with StageStyle.UNDECORATED and draw any decoration you like for such window.

Upvotes: 1

Related Questions