How openfin/java-example works
This repository is an example application for the OpenFin Java adapter, rather than the adapter implementation itself. Its principal workflow starts with a user launching the Java demo, which connects to the OpenFin Runtime, creates an HTML5 application, and controls its window. A separate example embeds an application in a Swing canvas. Other demo classes indicate channel, layout, notification, and FX examples. Relationships below rely on README walkthroughs; source excerpts were not provided, so additional wiring is left unspecified.
Main entry points: OpenFinDesktopDemo.java Desktop demo · WindowEmbedDemo.java Swing embed demo · AppCreateDialog.java App configuration dialog · PubSubTest.java Publish and subscribe
Components 13
Runtime Connection
- Desktop demo
src/main/java/com/openfin/desktop/demo/OpenFinDesktopDemo.java - Runtime setup
src/main/java/com/openfin/desktop/demo/OpenFinDesktopDemo.java - OpenFin Runtime
Application Examples
- App configuration dialog
src/main/java/com/openfin/desktop/demo/AppCreateDialog.java - HTML5 application
- Window controls
src/main/java/com/openfin/desktop/demo/OpenFinDesktopDemo.java - Swing embed demo
src/main/java/com/openfin/desktop/demo/WindowEmbedDemo.java
Adapter Features
- Publish and subscribe
src/main/java/com/openfin/desktop/demo/PubSubTest.java - Channel example
src/main/java/com/openfin/desktop/demo/ChannelExample.java - Layout service demo
src/main/java/com/openfin/desktop/demo/LayoutServiceDemo.java - Notification demo
src/main/java/com/openfin/desktop/demo/NotificationServiceDemo.java - JavaFX demo
src/main/java/com/openfin/desktop/demo/FxDemo.java
Other components
- Example user
Connections 13
- Example user → Desktop demo: starts
README.md - Desktop demo → Runtime setup: configures and connects
README.md - Runtime setup → OpenFin Runtime: launches and connects
README.md - Example user → App configuration dialog: enters configuration
README.md - Desktop demo → App configuration dialog: opens
README.md - Desktop demo → HTML5 application: creates and runs
README.md - App configuration dialog → HTML5 application: provides options
README.md - Example user → Window controls: controls
README.md - Window controls → HTML5 application: resizes and updates
README.md - Example user → Swing embed demo: starts embedding
README.md - Swing embed demo → Runtime setup: connects to
README.md - Swing embed demo → HTML5 application: creates and embeds
README.md - Example user → Publish and subscribe: uses messaging
README.md