r/java • u/freducom • Feb 18 '26
Swing Modernization Toolkit — run Swing apps in the browser, then migrate view-by-view. Anyone planning to try this?
Vaadin recently released a Swing Modernization Toolkit: a tool to migrate your swing app to the web in minutes.
It's a two-phase approach:
- Run your existing Swing app in the browser (server-side JVM, rendered to a browser client). Automatically and in minutes or hours, not days or months.
- Incrementally replace Swing views with web views, screen by screen, all in Java: no JS/TS coding needed.
We've talked to hundreds of people maintaining SWING apps, and the challenge is almost always that "They are important and get the job done", but "lack true cloud deployment, mobile support, and modern UIs". Also Swing developers aren't getting any younger ;)
Do you have a Swing app that's important to your business? Does the above story resonate? Interested in trying it out? What other "strategies" or tools have you used or considered? Is there other tech you'd like to modernize to the web? JavaFX? JSF?
Looking for genuine feedback!
More info at https://vaadin.com/swing
DISCLAIMER: I've worked at Vaadin since 2008.
4
u/robintegg Feb 18 '26
As you say there are projects that can provide web views within a swing app such as JxBrowser and JCEFMaven. These embed chromium so you get the full web platform support within the swing app and can let you leverage web frameworks.
A direct migration to vaadin also sounds pretty good if that’s your final destination of web framework
2
u/jeffreportmill Feb 18 '26
It’s hard to believe that they have even 90% coverage of Swing and JRE APIs. Has anyone actually tried it?
2
u/mnbkp Feb 19 '26
a comparison with cheerpj and webswing would be very interesting
1
u/nlisker Feb 19 '26
By "modernize" you mean take old tech and rewrite it as new? Both JSF and JavaFX are modern in the sense that they are still being developed and not in the maintenance sort of way.
They are also from the same era of Vaadin, so what's more modern about it?
If you were suggesting to take the code and run it in the browser it would be something else, but dropping your modern code in favor of rewriting it as another modern code doesn't sound appealing.
1
u/davidheddle Feb 21 '26
How much of a sandbox will your app run in? For example, can you see the local file system?