default action in actionmap

hi, i was wondering how to put back the default action for a key... like what is the default action method? is there anywhere i can get a list?
[150 byte] By [javabingea] at [2007-10-3 2:46:41]
# 1
> is there anywhere i can get a list? Read the API. For example in the JTextField API you will find a link titled "JTextField Key Assignments".Or write a program that iterates through the ActionMap and prints them all out.
camickra at 2007-7-14 20:35:27 > top of Java-index,Desktop,Core GUI APIs...
# 2
thanks for the reply. i looked at the API, and found the key assignments table. i was looking for more like the individual key assignments... is there a method to call a previous action which i am overwriting?my situation is that i want to add a few methods when a key is pressed
javabingea at 2007-7-14 20:35:27 > top of Java-index,Desktop,Core GUI APIs...
# 3

> i was looking for more like the individual key assignments

Which is what the above line gives you. If the key isn't listed in the table then it doesn't have a specifice Action mapped to it.

> is there a method to call a previous action which i am overwriting?

You can always save a reference to the existing Action and invoke it from your new action. This posting has an example:

http://forum.java.sun.com/thread.jspa?forumID=57&threadID=657819

camickra at 2007-7-14 20:35:27 > top of Java-index,Desktop,Core GUI APIs...
# 4

hm... i managed to overwrite my previous function, when i realized that it didnt' have an entry in the input map in the first place =P

what i am making is a focus controller which controls the cursor on a page with multiple text fields. when a certain char is pressed, then the focus will redirect to the appropriate field, and then begin typing.

my thought process goes along the lines of this:

take out the entry in the inputmaps of all my jtextfields so that it gets passed on to their parents, which is the highest ancestor. the ancestor decides who gets the focus and transfers it, sending the prefix with him. i think my problem is that the ancestor does not have an entry in his input map. it is to my understanding that if you add null to the inputmap for the key, he will pass the key to his ancestor. i want him to pass it to his child. any thoughts?

javabingea at 2007-7-14 20:35:27 > top of Java-index,Desktop,Core GUI APIs...
# 5
Don't really understand your requirement so I'll just point you to the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html]How to Use Key Bindings[/url] which shows how to use an ActionMap on an ancestor.
camickra at 2007-7-14 20:35:27 > top of Java-index,Desktop,Core GUI APIs...