Before my recent update to Java 1.7.0_25, I was able to initialize a new JApplet from a browser embedded JavaFX 2.2 application. Now I get this exception:
java.lang.NullPointerException
at javax.swing.SwingUtilities.appContextGet(Unknown Source)
at javax.swing.TimerQueue.sharedInstance(Unknown Source)
at javax.swing.JApplet.<init>(Unknown Source)
at com.glavsoft.viewer.Viewer.<init>(Viewer.java:165)
The source of the problem is that this static method call returns null:
AppContext.getAppContext()
AppContext is from the AWT package. When I run the JavaFX 2 application as a standalone, the AppContext loads fine.
How can I get the AWT AppContext or else initialize a new stub JApplet with it's own AWT context?