r/java • u/vmcrash • Jul 07 '26
Jetbrains JBR and Swing applications
We are evaluating whether to convert our SWT based application to Swing and also came across JBR which seems to improve a lot of things on the otherwise rather stalled Swing development. Are there other teams beside Jetbrains which use JBR - if yes, what are your experiences?
25
Upvotes
5
u/lazystone Jul 07 '26
Have you considered JavaFX?
16
u/paul_h Jul 07 '26
TLA JBR == https://github.com/JetBrains/JetBrainsRuntime, for the unintiated
12
u/bwRavencl Jul 07 '26
I've played with it mainly because I am interested in their support for Wayland - they are also the main contributors behind Project Wakefield. Basically what will land in Wakefield at some point is already in JBR right now.
What kept me off for now is that they only do "LTS" releases with JBR and I switch my app to the latest JDK release asap with every new Java version.
Also, switching to Wayland (which would be the main factor for going with JBR for me) is blocked, due to the lack of support for the xx-zones and xdg-pip protocols at this point.
1
u/n4te Jul 07 '26
I vote for libgdx scene2d.ui! I love working on Spine, which is built with it.
1
u/vprise Jul 08 '26
FYI Codename One now supports native targets for Mac, Win32, Linux (even musl), Adnroid, iOS and JavaScript. For free and open source.
1
u/jNayden Jul 09 '26
Why dont u use flutter ? I mean if your app is nti very heavy you don't have to use dart at all. You can make a communication from Java to Dart and Build the tree and everything in Java.
Basically at the end you will have Java API whatever you want it that will render flutter at the end .
1
u/RandomName8 Jul 28 '26
I use Java-GI which is GTK. GTK being way more developed and polished than javafx or swing never leaves me wanting, unlike the other two.
3
u/DogProgrammatically2 Sep 09 '26
We maintain a pretty large Swing-based editor and honestly Swing still works fine for this kind of application.
With a decent Look & Feel and some custom components you can build a modern editor UI without much trouble.
I haven't used JBR specifically though, so I'd first check what problem it actually solves for your application before making it a dependency.
4
u/lppedd Jul 07 '26
One aspect you should consider is IJ has hundreds of abstractions over Swing, which you won't get.
Plus, JetBrains is developing Jewel in parallel and I envision a future where pure Swing will be gradually phased out. As you can see Jewel has been moved to the IJ monorepo.
3
u/jeffreportmill Jul 07 '26
What is the app?
I use SnapKit (https://github.com/reportmill/SnapKit), which I based on Swing, but with modern features borrowed from JavaFX. And most importantly, it runs well in the browser.
-15
u/deadron Jul 07 '26
If you are primarily targeting windows you are doing a disservice to yourself by not going to dotnet/WinUI. If you are targeting multiplatform electron and QT or something like GTK+ are better long term alternatives. I know none of these are Java but all of them will look better than swing.
4
u/[deleted] Jul 07 '26
[removed] — view removed comment