changeset 6719:81ea60e97a31

Merge
author asaha
date Wed, 07 Aug 2013 12:04:31 -0700
parents a98bcad1f6f0 070b277e1b43
children 1a2e92866dba
files
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/awt/AppContext.java	Fri Aug 02 22:27:13 2013 -0700
+++ b/src/share/classes/sun/awt/AppContext.java	Wed Aug 07 12:04:31 2013 -0700
@@ -309,11 +309,13 @@
                     // and excludes applets because by the time applet starts
                     // a number of contexts have already been created by the plugin.
                     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 &&
                                 System.getProperty("javawebstart.version") == null) {
                             initMainAppContext();
+                        } else if (System.getProperty("javafx.version") != null &&
+                                threadGroup.getParent() != null) {
+                            // Swing inside JavaFX case
+                            SunToolkit.createNewAppContext();
                         }
                     }