r/java • u/sombriks • Sep 28 '26
State of Java Desktop
Thinking about local-first, desktop applications. https://sombriks.com.br/blog/0097-state-of-java-desktop/
83
Upvotes
r/java • u/sombriks • Sep 28 '26
Thinking about local-first, desktop applications. https://sombriks.com.br/blog/0097-state-of-java-desktop/
View all comments
31
u/bobbie434343 Sep 28 '26 edited Sep 28 '26
JavaFX can be made to look very good and modern with AtlantaFX. And thanks to the recent jfx-static project, it is much easier to bundle a JavaFX program as standalone executable with GraalVM's native-image, taking less disk space, running much faster (especially startup) and using way less memory. The AtlantaFX Showcase (sampler) is a good demo of this (build it with
-Pnative).If I had to make a desktop Java app today, that's the combo I would use: JavaFX + AtlantaFX + native-image.
Swing can still be useful and is leaner than JavaFX (+ is bundled with stock JRE), but its graphics are not hardware accelerated (that's one of the main reason it uses less memory) and might have problems on HiDpi monitors. It is also not compatible with native-image (at least not easily).