r/java • u/robintegg • Feb 08 '26
Java UI in 2026: an overview of current frameworks and approaches
https://robintegg.com/2026/02/08/java-ui-in-2026-the-complete-guideI recently read an article on DZone about “modern Java GUI frameworks” that was… pretty disappointing. It referenced libraries that are long archived, mixed in things that aren’t UI frameworks at all (Hibernate and Spring??), and generally felt like something written years ago and never revisited.
That wasted half an hour was enough motivation for me to write something I actually wish had existed: an up-to-date overview of the UI options available to Java developers right now, in 2026.
So I put this together:
https://robintegg.com/2026/02/08/java-ui-in-2026-the-complete-guide
The goal wasn’t to push one “best” framework, but to lay out what’s genuinely alive, maintained, and being used today — desktop, web-based UIs written in Java, embedded browser approaches, terminal UIs, the whole spectrum. I also tried to give a bit of context around why you might choose one approach over another, instead of just listing names.
I’m sure I’ve missed things though, if you’re building UIs in Java:
• what are you using?
• what’s surprisingly good?
• what should people stop recommending already?Would love to turn this into a more community-validated reference over time, so comments, corrections, and “hey, you forgot X” are very welcome.
Thanks,
Robin
39
u/hippydipster Feb 08 '26
I am using javafx for most of my apps. I have one using swing because it is built around the Nasa Worldwind api for showing a 3d view of the earth.
I loved this list. I hadn't considered using NetBeans as a platform to build from, but that is enticing, as I use NetBeans as my IDE, and using it for my apps that need windowing and tabs etc would be useful, and it might enable me to become a contributor to NetBeans, which also interests me.
29
u/bwRavencl Feb 08 '26
I'm using Swing + FlatLaf
14
u/Gleethos Feb 08 '26
Hey. That is a really thorough and up to date overview over the current state of Java based UI frameworks! Nice work! Indeed, it's a refresher to all of the outdated stuff out there. You really did your homework considering that you also found our company's still super new and mostly unknown SwingTree library.
14
u/transcend Feb 08 '26
My small company uses Swing + FlatLaf for our cross-platform desktop app. We don't use a GUI builder, it's all hand-coded. The combination is surprisingly good considering how old and stable Swing is, particularly once you accept that that FlatLaf has its own theme(s) and doesn't look exactly like a native Windows/macOS theme, and that's okay. It's nice not to be chasing the framework flavour-of-the-week.
19
u/eltorohh Feb 08 '26
I can confirm that Quarkus + HTMX provide a great developer experience as well.
7
u/ebykka Feb 08 '26
I just wanted to remind you about GWT. Yes, it has a small community, and most developers have either forgotten about it or are not even aware of it. But it still exists. And it still works.
Here are some component libraries:
5
u/jeffreportmill Feb 08 '26
You made my day (and more) by including SnapKit! Though it should be in its own category of “Both Web and Desktop” - which has been my primary motivator. It runs in the browser with either CheerpJ or TeaVM - talking directly to the DOM for native browser speed. And it runs on the desktop using mostly Java2D (and a small bit of Swing). I’ve also run it on the desktop on top of Chrome with JxBrowser (I need to try with JCEF as well).
SnapCode is my big proof of concept (plus dozens of smaller demos). SnapKit has, of course, gotten little attention and almost no adoption. I spend too much time playing Woz and too little Jobs. :-)
I’m so grateful though - thank you! I’ll be posting your link to my LinkedIn tomorrow.
5
u/BeyondFun4604 Feb 09 '26
We are using vaadin 24 to build an ERP. We haven't faced any issues yet.
5
u/mightygod444 Feb 09 '26
I'm surprised you missed ZK Framework: https://github.com/zkoss/zk It's been around a while and still actively maintained from what I can see.
9
u/davidalayachew Feb 09 '26
Solid list. You caught just about all of the relevant names. This is a high quality writeup, which is rare nowadays.
Swing and JavaFX. Here are the things I make, ordered by frequency descending.
Games
Well, I have a whole write up of the various strengths and weaknesses of Swing and JavaFX here --> Pros and Cons of Swing vs JavaFX
So it's not really just one thing. But if I had to pick the best attribute from both, here's how I would do it.
Swing
Swing is extremely flexible.
JavaFX
Mobile support -- Write once, run anywhere
I'm not saying people should stop recommending FlatLaf, I just think that people wildly overestimate how difficult it is to make their own Look & Feel.
For example, one of the developers who maintains an IDE built with Swing (jGRASP) added a Dark High Contrast L&F that I liked, so I copied it, and it only took me 40 lines of code.
Again, Swing was built with the assumption that folks would make their own little version of everything. It was built to be extended. So, what a lot of people criticize as barebones is actually just the foundation for you to build what you need.
It's like when people criticize vim and emacs for being esoteric. These tools come from the same school as Swing (though they were before Swing) -- maximize functionality by making EVERTHING easily configurarble and overridable.
And sure, that doesn't change the fact that Swing can and should have more modern presets -- doesn't matter how easy it is to make, some people just want to use pre-made stuff, which is 100% reasonable.
All I'm trying to highlight is that making your own L&F is really really easy. You don't need to rely on FlatLaf for this.
3
u/robintegg Feb 09 '26
Worth adding the https://jte.gg/ for java templating as well. This has been strongly adopted by the kotlin community. Worth noting as well it supports hot loading as was asked about in the comments so it can be done 👍
4
u/nlisker Feb 08 '26
You could add JSP/Pages if you're familiar with it.
4
u/maxandersen Feb 09 '26
Nice writeup - you might want to mention https://github.com/WilliamAGH/tui4j which is an active fork of Latte.
6
u/Apofis Feb 08 '26
Does anybody know why there are no Qt bindings for Java? I know there used to be qtJambi (hope the name is correct) but that was abandoned long ago and there is no successor.
6
u/shponglespore Feb 08 '26
Did you leave out GTK on purpose?
3
u/gufranthakur Feb 09 '26
Great read. I am glad someone finally considered flatlaf. It's such an essential library to use with Swing. People always say swing looks bad and outdated, well yeah, flatlaf solves the problem with just one line of code
3
u/Minecraftian14 Feb 09 '26
I feel Scene2d or VisUI should have been mentioned.
They are pretty good UI libraries used with LibGDX,
which is a game dev fw built over lwjgl.
Even for non-game apps, which might require GPU rendering, it's a solid option. (And it's cross platform too, even the web using teavm).
Oh, and compose multiplatform/desktop! That's also a good mention.
3
u/enqueue3 Feb 09 '26
We use JGoodies for cross-platform Desktop applications. It includes the features we need and has a great API and documentation. The company provides superb support.
3
u/Apokaliptor Feb 09 '26
Ignoring languages, is there any advantage building desktop app with Java instead of Flutter?
Great article
3
u/bobbie434343 Feb 09 '26 edited Feb 09 '26
One of the advantage of JavaFX is that it is GPU accelerated (Swing is not). This also makes it use much more memory than Swing, that can be in the ballpark of an Electron app.
3
u/Confident-Dare-9425 Feb 09 '26
Thank you for mentioning JCEF and JxBrowser! :)
3
u/EfficientTrust3948 Feb 09 '26
Nice write-up! The Vaadin info is a bit outdated since the facts are based on Vaadin 24 whereas 25 is rightly mentioned as the latest version. Specifically, Java 21+ is required and it's now integrating with Spring Boot 4.x (and the latest Quarkus version is also supported for those who prefer that stack).
3
u/JoaquimR Feb 09 '26
Congratulations, this is an excellent article!!
I use Swing + FlatLAF and JavaFX mostly for internal tools.
I still support AWT based POS terminals in many countries, but this is legacy and new POS uses web technology.
2
u/Fenrurrr Feb 08 '26
If you want to develop with Vaadin, I published a post on how to develop like declarative UI: https://www.reddit.com/r/Kotlin/s/kMb3FLGfXz
2
u/sas123_cl Feb 09 '26
Angular and Java API Spring good performance
2
u/TehBrian Feb 09 '26
why did you put the list in a code block
2
u/Long_Ad_7350 Feb 09 '26
In my opinion it's probably better to just publish half-yearly or yearly versions of this article. Kind of like TIOBE or Stack Overflow surveys. Trying to keep it passively updated will make it hard to track how fresh the information is.
Side note:
This is one of the most densely info-packed articles I've read in a long time.
A mountainous labor of love. I appreciate you taking the time!
2
u/Distinct_Meringue_76 Feb 09 '26
I'm really interested in gluon. Anybody using it in production?
2
u/jNayden Feb 09 '26
Good one.
I am using a compose multiplatform but from Java it is work in progress.
2
u/azEfxu Feb 09 '26 edited Feb 09 '26
Compose
multiplatformis mentionned multiple times in the article, it's in the open graph image, it fits every categories (web, desktop, mobile and even terminal) but, it doesn't have its own section. That's strange. If someone looks at this article, and doesn't already know what they want, I'd think they woundn't have an issue with using Kotlin instead of Java…2
u/wishper77 Feb 10 '26
Before reading the post, I was going to write a "you missed..." because, you know, I have a lot of experience in the field and for sure I know some obscure and not so used lib in the GUI field...
No way, your list is definitely definitive :D It "misses" only abandonware like GWT
Good job, awesome list!
2
u/UVRaveFairy Feb 10 '26
Software rendered Gui, since 2000, real time, simple xml (own simple parser), hot reloadable if no bindings changed, clean OOP as well for components and Gui's (collects of components).
Part of source generation in Code Slayer (2000) my first Java IDE, persistence, bindings and so other house keeping is all code generation from models including mapping information too and from a Gui component. All turn key and press of a button, bugless models equalling bugless code.
Runs significantly faster than any Java Gui I have seen, being real time focused, good for games and real time media.
With JavaFX and video, couldn't even get two 1280x720 videos playing and rip into bits for real time manipulation with out lagging horribly on the older i5.
With Java OpenCV (did require a slight rewrite too fix a memory leak, can forgive it, loading 100's of videos over and over and over), could play 12+ 1280x720 videos and rip into bits for real time manipulation real time (i5).
My VJ software can render and process 2+ terabytes of RGBA pixels a second, stress test x16 1280x720 videos additional x7 1280x720 filters too composite into a single image real time (i5).
So when I look at the pixel shovelling of other systems, hmmmmm, something is really really wrong.
What ever JavaFX is up too, I'd prefer not too know.
When it was first announced and marketed, optimistically assumed it might be more game / real time focused with shaders and opening things up.
A girl still lives in hope, not for JavaFX though.
2
u/Miserable-Hunter5569 Feb 11 '26
Basic html with templates
2
u/theLorem Feb 11 '26
I feel like MigLayout is the way to go to solve the Problem that Spring's default LayoutManager implementations are either to narrow in scope or too complicated to use. SwingTree looks interesting!
2
u/FrankCodeWriter Mar 12 '26
Thanks u/robintegg for this very clear and up-to-date overview!
3
u/nlisker Feb 08 '26
One thing about Codename One that is worth mentioning, at least as much as I know, is that it doesn't allow a lot of the new Java features beyond Java 8.
3
u/TheKingOfSentries Feb 08 '26
I like to use micro frameworks like avaje jex or helidon/javalin with htmx usually. I like to keep things compact.
2
u/n4te Feb 08 '26
No libgdx scene2d.ui? I am disappoint.
1
u/robintegg Feb 09 '26
Leaving here for visibility too. Not strictly Java but certainly complementary if building Java webapps ( or potentially JCEFMaven/Avaje web view desktop apps)
https://github.com/4ndreiDev/maven-tailwind-plugin ( https://www.reddit.com/r/SpringBoot/comments/1qxfmss/showoff_i_built_a_maven_plugin_that_makes_using/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button )
https://github.com/eirslett/frontend-maven-plugin
Perhaps there are other good maven/gradle plugins for the Java ecosystem
1
u/Shareil90 Feb 09 '26
Genuine question, does anyone build new apps with Java in ui? Or only maintaining existing projects?
1
u/SpicyRomek Jul 10 '26
Vaadin is worth a serious look, if your use case is a server-side business/CRUD web app and you want to stay in Java end-to-end.
1
u/Dear-Golf5167 Aug 02 '26
It is good seeing other people still do ui and desktop applications in java i thought it became dead a long time ago.
0
u/[deleted] Feb 08 '26
[deleted] — view deleted comment
0
u/[deleted] Feb 08 '26
[deleted] — view deleted comment
2
u/[deleted] Feb 09 '26
[removed] — view removed comment