Skip to content

Commit eb7e1be

Browse files
committed
ADAP-150: updated examples for Layout service
1 parent 5e5ef7a commit eb7e1be

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

release/docking.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ REM layout.html is a simple example of OpenFin window that uses Layout service.
33
REM For this example to work, layout.html needs to be hosted by a web server and its URL needs to be configured with -Dcom.openfin.demo.layout.url
44
REM To set RVM path, add -Dcom.openfin.demo.layout.rvm=C:\Users\username\AppData\Local\OpenFin\OpenFinRVM.exe
55

6-
java -cp openfin-desktop-java-example-7.1.1.jar;openfin-desktop-java-adapter-7.1.1-SNAPSHOT.jar;TableLayout-20050920.jar;jna-4.1.0.jar;jna-platform-4.1.0.jar;json-20140107.jar;slf4j-api-1.7.5.jar;slf4j-jdk14-1.6.1.jar;websocket-api-9.3.12.v20160915.jar;websocket-client-9.3.12.v20160915.jar;websocket-common-9.3.12.v20160915.jar;jetty-io-9.3.12.v20160915.jar;jetty-util-9.3.12.v20160915.jar -Dcom.openfin.demo.layout.url=http://localhost:8008/layout.html -Dcom.openfin.demo.layout.rvm=C:\Users\wenju\AppData\Local\OpenFin\OpenFinRVM.exe com.openfin.desktop.demo.LayoutServiceDemo
6+
java -cp openfin-desktop-java-example-7.1.1.jar;openfin-desktop-java-adapter-7.1.1-SNAPSHOT.jar;TableLayout-20050920.jar;jna-4.1.0.jar;jna-platform-4.1.0.jar;json-20140107.jar;slf4j-api-1.7.5.jar;slf4j-jdk14-1.6.1.jar;websocket-api-9.3.12.v20160915.jar;websocket-client-9.3.12.v20160915.jar;websocket-common-9.3.12.v20160915.jar;jetty-io-9.3.12.v20160915.jar;jetty-util-9.3.12.v20160915.jar -Dcom.openfin.demo.layout.url=http://localhost:8008/layout.html -Dcom.openfin.demo.layout.rvm=C:\Users\username\AppData\Local\OpenFin\OpenFinRVM.exe com.openfin.desktop.demo.LayoutServiceDemo
85 Bytes
Binary file not shown.

src/main/java/com/openfin/desktop/demo/LayoutServiceDemo.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,10 @@ public void actionPerformed(ActionEvent e) {
136136
JPanel pnl = new JPanel(new FlowLayout(FlowLayout.CENTER));
137137
pnl.add(btnCreateOpenfinWindow);
138138
pnl.add(btnCreateJavaWindow);
139-
pnl.add(btnCreateFramelessJavaWindow);
139+
if (System.getProperty("com.openfin.demo.layout.frameless") != null) {
140+
// This example is experimental and not available yet
141+
pnl.add(btnCreateFramelessJavaWindow);
142+
}
140143
pnl.add(btnCreateJavaFxWindow);
141144

142145
contentPnl.add(new JLabel("Undock Openfin windows with global hotkey (CTRL+SHIFT+U or CMD+SHIFT+U)"),

0 commit comments

Comments
 (0)