about getActionMap method
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Maheshwaran_R
Posted On:   Wednesday, July 30, 2003 04:59 AM

what does getActionMap do

Re: about getActionMap method

Posted By:   Ferenc_Dobi  
Posted On:   Thursday, August 7, 2003 06:51 AM

Hello!


getActionMap works together with setActionMap,
getInputMap, setInputMap, and the methods
of ActionMap, InputMap.


It is useful when you want to redefine a keyboard
action:


For example:


Object key="something you want";
component.getInputMap.put(keyStroke, key);
component.getActionMap.put(key, new AbstractAction() {
public void actionPerformed() {
// add your event handling code here
System.out.prinln("Sorry key redefined! :)");
}
}


regards
Feri

About | Sitemap | Contact