If you're referring to FXML, most people generally skip that and write the UI directly with control/layout types like you would with Swing. By doing that you basically get the same experience as writing a Swing UI but with a much more modern and nicer API.
There's some people who do like FXML though. And for that there are projects to mitigate some of the developer QoL issues.
https://github.com/jfxcore/fxml-compiler - Ahead of time compilation of UI mitigates FXML runtime loading costs, and they also add a few features to FXML along with extension support so you can also make your own features. Very neat stuff.
CSS
Somebody else already mentioned AtlantaFX in this post, but its really a great project / theme base to work off of. It modularizes writing CSS per-component to keep things easy to manage and lets you also write in SASS if you want. But if you want the classic CSS experience you can generate / modify the generated plain CSS from the SASS base. Its what I've done in the past.
View all comments
Show parent comment
11
u/PartOfTheBotnet Sep 11 '26
If you're referring to FXML, most people generally skip that and write the UI directly with control/layout types like you would with Swing. By doing that you basically get the same experience as writing a Swing UI but with a much more modern and nicer API.
There's some people who do like FXML though. And for that there are projects to mitigate some of the developer QoL issues.
Somebody else already mentioned AtlantaFX in this post, but its really a great project / theme base to work off of. It modularizes writing CSS per-component to keep things easy to manage and lets you also write in SASS if you want. But if you want the classic CSS experience you can generate / modify the generated plain CSS from the SASS base. Its what I've done in the past.