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
1
u/SpicyRomek 2d ago
Disclosure: I work at Vaadin.
If you want "no install, just a link" without running Java in the browser, Vaadin's SwingBridge does the opposite of CheerpJ. The Swing app keeps running unchanged on a server JVM. SwingBridge streams only the changed screen regions to the browser and replays clicks and keystrokes on the real Swing components. So there's no client-side JVM or WASM, and no rewrite. It also runs NetBeans Platform apps.
Because the Swing app is hosted inside a Vaadin app, you can then replace views one at a time with Vaadin views written in Java, and call between the old and new code. It's a bit like what u/bfoo described doing with JavaFX inside Swing, except you end up on the web.
Trade-offs, so nobody's surprised:
Docs if anyone wants to poke at it: https://vaadin.com/docs/latest/tools/modernization-toolkit/swing-bridge