提交 c8c4adea 编写于 作者: L leonidr

8021381: JavaFX scene included in Swing JDialog not starting from Web Start

Reviewed-by: art, dcherepanov
上级 9fb92f67
...@@ -310,11 +310,13 @@ public final class AppContext { ...@@ -310,11 +310,13 @@ public final class AppContext {
// and excludes applets because by the time applet starts // and excludes applets because by the time applet starts
// a number of contexts have already been created by the plugin. // a number of contexts have already been created by the plugin.
if (numAppContexts.get() == 0) { if (numAppContexts.get() == 0) {
// This check is not necessary, its purpose is to help
// Plugin devs to catch all the cases of main AC creation.
if (System.getProperty("javaplugin.version") == null && if (System.getProperty("javaplugin.version") == null &&
System.getProperty("javawebstart.version") == null) { System.getProperty("javawebstart.version") == null) {
initMainAppContext(); initMainAppContext();
} else if (System.getProperty("javafx.version") != null &&
threadGroup.getParent() != null) {
// Swing inside JavaFX case
SunToolkit.createNewAppContext();
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册