Package net.sf.colossus.guiutil
Class SwingReferenceCleanupHacks
java.lang.Object
net.sf.colossus.guiutil.SwingReferenceCleanupHacks
Special hack to cleanup some static reference to the JFrame
inside Swing; copied from here:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4907798
- Author:
- Clemens Katzer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
cleanupJPopupMenuGlobals
(boolean removeOnlyMenuKeyboardHelpers) private static Object
safelyGetReflectedField
(String aClassName, String aFieldName, Object anObject) private static void
SafelySetReflectedFieldToNull
(Class<?> aClass, String aFieldName, Object anObject) private static void
SafelySetReflectedFieldToNull
(String aClassName, String aFieldName, Object anObject)
-
Constructor Details
-
SwingReferenceCleanupHacks
public SwingReferenceCleanupHacks()
-
-
Method Details
-
cleanupJPopupMenuGlobals
public static void cleanupJPopupMenuGlobals(boolean removeOnlyMenuKeyboardHelpers) -
SafelySetReflectedFieldToNull
-
SafelySetReflectedFieldToNull
-
safelyGetReflectedField
-
cleanupJMenuBarGlobals
public static void cleanupJMenuBarGlobals()
-