You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-29Lines changed: 0 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,35 +106,6 @@ Source code for the example is located in /src/main/java/com/openfin/desktop/dem
106
106
3. dockToStartupApp and undockFromStartupApp show to dock and undock 2 windows.
107
107
108
108
109
-
## Run the example of embeding HTML5 application to Java Swing window with awt.canvas
110
-
111
-
1. Clone this repository
112
-
113
-
2. Go to release directory and start embedding.bat
114
-
115
-
3. Once the java app starts, click on "Launch OpenFin" button, which should start OpenFin Runtime and "Hello OpenFin" HTML5 demo app. The java app will wait and try to connect to OpenFin Runtime.
116
-
117
-
4. You can click "Embed HTML5 app" button bring HTML5 window into Swing window.
118
-
119
-
## Source Code Review for embedding windows
120
-
121
-
Source code for the example is located in /src/main/java/com/openfin/desktop/demo/WindowEmbedDemo.java. The followings overview of how it communicates with OpenFin Runtime with API calls supported by the Java adapter:
122
-
123
-
1. Create connection object:
124
-
125
-
this.controller = new DesktopConnection("OpenFinDockingDemo", "localhost", port);
126
-
127
-
This code just creates an instance and it does not try to connect to runtime.
listener is an instance of DesktopStateListener which provides callback on status of connections to runtime. desktopCommandLine is a string of arguments passed to OpenFinRVM.
134
-
This example by default passes remote config file for Hello OpenFin app, which will be started as the first app in OpenFin Runtime.
135
-
136
-
3. embedStartupApp method shows to embed HTML5 app to Swing window.
0 commit comments