src/share/classes/sun/awt/AppContext.java

Print this page

        

@@ -340,10 +340,20 @@
         }
 
         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,
                                            // once for dispose(), and once
                                            // to clear the EventQueue).