--- old/src/share/classes/sun/awt/AppContext.java 2011-12-19 18:27:51.000000000 +0400 +++ new/src/share/classes/sun/awt/AppContext.java 2011-12-19 18:27:50.000000000 +0400 @@ -342,6 +342,16 @@ return appContext; } + /** + * Returns the main ("system") AppContext. + * + * @return the main AppContext + * @since 8 + */ + final static AppContext getMainAppContext() { + return mainAppContext; + } + private long DISPOSAL_TIMEOUT = 5000; // Default to 5-second timeout // for disposal of all Frames // (we wait for this time twice,