Mega Code Archive

 
Categories / Java Tutorial / Swing Event
 

KeyStroke Class

Constant Description WHEN_FOCUSEDActivates the keystroke when the actual component has the input focus WHEN_IN_FOCUSED_WINDOWActivates the keystroke when the window that the component is in has the input focus WHEN_ANCESTOR_OF_FOCUSED_COMPONENTActivates the keystroke when pressed in the component or a container of the component UNDEFINED_CONDITIONFor when no condition is defined