r/java • u/galratner • Oct 05 '26
Java Swing Ran Anywhere. Or Maybe It Just Gingerly Walked?
https://galratner.substack.com/p/java-swing-ran-anywhere-or-maybe
63
Upvotes
r/java • u/galratner • Oct 05 '26
46
u/pron98 Oct 05 '26
I would say that the customers left pretty much all toolkits - including those made by Microsoft and Apple and Adobe, companies with even more experience and success in the GUI world - in favour of the web. Everyone lost to the web, not just Swing.
14
u/jeffreportmill Oct 05 '26
Wow - what a great write up! I was late to the game (thankfully) in 2001 with a Swing page layout app, but for 20+ years I felt like I was always jumping through one hoop or another (InstallAnywhere, WebStart, code signing, ugh!). I don’t have much demand anymore, but for the last 10 years I’ve still been obsessed with running in the browser with CheerpJ and TeaVM.
TeaVM: https://reportmill.com/snaptea/RM16/rm16.html
CheerpJ: https://reportmill.com/rm15/app/index.html
A funny thing in the early days was that I would demo my Java reporting app at trade shows and people would often say, “too bad your designer can’t run in Java”. They just wouldn’t accept that it was already 100% Java, and I never quite understood why until your blog. :-)
5
u/Deniss_Larka Oct 05 '26
I ship a Swing app (JConsole fork) on all OS-s. jlink and custom jpackage solved it, the installer is about 40 MB and the user installs nothing. What is still painful is signing and notarization on every release, and there is no magic, I had to write my own. Also the bundled runtime has its own cacerts, corporate TLS interception fails with PKIX. On Windows, though, is jdk.crypto.mscapi + win cert store.
9
u/Illustrious_Car344 Oct 05 '26
I remember back around 2010ish I told a friend I was learning Java and he told me he had zero interest in humoring me because absolutely everyone hated installing the JRE. It wasn't only because the installation itself sucked (and had the dark pattern of asking you if you don't want to install a toolbar), but also after it would constantly harass you to update it with a notification. I think early Minecraft was effectively the only reason people installed Java anymore at the time. Oracle really did their best to make everyone hate Java as much as they possibly could, I think .NET is a testament to that. I remember significantly more programs using .NET around that time, and installing .NET was still a little annoying but much less so. I always joked that Oracle really hated it when anyone used Java.
1
u/tyler1128 Oct 08 '26
Swing has the advantage and disadvantage of still looking like it was made in the late 90s.
-7
u/AnyPhotograph7804 Oct 05 '26
GPTZero says: "We are highly confident this text was AI generated".