--- old/src/share/classes/sun/awt/AppContext.java 2013-08-06 12:16:17.942679800 +0400 +++ new/src/share/classes/sun/awt/AppContext.java 2013-08-06 12:16:17.738304700 +0400 @@ -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(); } }