aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/javax/swing/KeyboardManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/javax/swing/KeyboardManager.java')
-rw-r--r--libjava/classpath/javax/swing/KeyboardManager.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/libjava/classpath/javax/swing/KeyboardManager.java b/libjava/classpath/javax/swing/KeyboardManager.java
index 4f778f7..f7ac949 100644
--- a/libjava/classpath/javax/swing/KeyboardManager.java
+++ b/libjava/classpath/javax/swing/KeyboardManager.java
@@ -46,6 +46,7 @@ import java.awt.event.KeyEvent;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Vector;
+import java.util.WeakHashMap;
/**
* This class maintains a mapping from top-level containers to a
@@ -65,7 +66,7 @@ class KeyboardManager
* A mapping between top level containers and Hashtables that
* map KeyStrokes to Components.
*/
- Hashtable topLevelLookup = new Hashtable();
+ WeakHashMap topLevelLookup = new WeakHashMap();
/**
* A mapping between top level containers and Vectors of JMenuBars