Dynamic KeyBinding

Hi



I'd like to ask how to dynamically set the keys of KeyBindingManager in runtime…



I tried to use the kmanager.set("forward", int keycode) function… and put 38 in it (Key_Up in Swing returned by KeyListener)… but it seems to be looking for another value… and then I tried scanning the docs and found that in KeyInput.java… KeyUp is defined as…



public static final int KEY_UP = 0xC8;



how do I programmatically get this value?

hi again…



anyway… I found a solution to my problem… I tried the jmetest.input.TestKeyInput.java… and scanned through its code… works like a charm now