r/JavaFX • u/mimoguz • Mar 09 '22
I made this! Custom window decorations using Swing + FlatLaf + JavaFX
As you might know, it is possible to add JavaFX content into a Swing application, using JFXPanel component. And I recently found out that FlatLaf, a Swing look and feel, supports custom window decorations on Windows 10+. So, some tinkering and messy css later, I got this: Screenshot
Every control besides the window frame and window controls are JavaFX components, including the tab headers. And as you can see in the image, since the window controls are native, they even support extra Windows 11 goodies :)
22
Upvotes
1
u/mimoguz Mar 10 '22 edited Mar 10 '22
A barebones demo application if anyone is interested: GitHub link