diff options
author | Roman Kennke <roman@kennke.org> | 2006-01-31 09:33:04 +0000 |
---|---|---|
committer | Roman Kennke <roman@kennke.org> | 2006-01-31 09:33:04 +0000 |
commit | c279e577964935e4233cf54f6ea0eb03db454e71 (patch) | |
tree | 74956c607c48b5a3076af46c48f05293a593e224 /javax/swing/plaf/basic/BasicTextUI.java | |
parent | 7a6f305b93ad23b6371ddb06cc1e9d19c2e7932d (diff) | |
download | classpath-c279e577964935e4233cf54f6ea0eb03db454e71.tar.gz |
2006-01-31 Roman Kennke <kennke@aicas.com>
* javax/swing/plaf/basic/BasicTextUI.java
(createKeymap): Don't store KeyBindings[] as focusInputMap in
UIManager. Added FIXME regarding the implementation of this method.
Diffstat (limited to 'javax/swing/plaf/basic/BasicTextUI.java')
-rw-r--r-- | javax/swing/plaf/basic/BasicTextUI.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/javax/swing/plaf/basic/BasicTextUI.java b/javax/swing/plaf/basic/BasicTextUI.java index fc3889484..413f4c64b 100644 --- a/javax/swing/plaf/basic/BasicTextUI.java +++ b/javax/swing/plaf/basic/BasicTextUI.java @@ -621,6 +621,11 @@ public abstract class BasicTextUI extends TextUI */ protected Keymap createKeymap() { + // FIXME: It seems to me that this method implementation is wrong. It seems + // to fetch the focusInputMap and transform it to the KeyBinding/Keymap + // implemenation. I would think that it should be done the other way, + // fetching the keybindings (from prefix + ".bindings") and transform + // it to the newer InputMap/ActionMap implementation. JTextComponent.KeyBinding[] bindings = null; String prefix = getPropertyPrefix(); InputMapUIResource m = (InputMapUIResource) UIManager.get(prefix + ".focusInputMap"); @@ -637,10 +642,7 @@ public abstract class BasicTextUI extends TextUI } } if (bindings == null) - { - bindings = new JTextComponent.KeyBinding[0]; - UIManager.put(prefix + ".focusInputMap", bindings); - } + bindings = new JTextComponent.KeyBinding[0]; Keymap km = JTextComponent.addKeymap(getKeymapName(), JTextComponent.getKeymap(JTextComponent.DEFAULT_KEYMAP)); |