Frequently Asked Questions
What is SwingBridge?
SwingBridge is a Vaadin component that allows you to run existing Swing applications in a web browser without rewriting them. It captures the Swing UI as images and streams them to the browser while handling user interactions.
Does the existing Swing code need modification?
Swing applications originally are designed and built with single tenancy in mind. Local resource usages like filesystem access, serial devices etc. should be refactored to achieve full multi-tenancy. Vaadin has relevant tooling to automate code refactoring.
What Swing components are supported?
All standard Swing components are supported, as well as your customized Swing components.
-
JFrame,JDialog,JWindow -
JPopupMenu and combo box popups
-
JFileChooser (with special upload handling)
-
Tooltips
-
All standard Swing widgets (buttons, text fields, tables, etc.)
How does SwingBridge work?
SwingBridge runs your Swing application on the server and continuously inspects the Swing UI for changes. As soon as a change is detected, dirty regions are streamed to the browser to keep the updates as lightweight as possible. User interactions (clicks, keyboard input) are sent back to the server and replayed on the actual Swing components.