30
Oct
Black Art of Java Game Programming by Joel Fan Sams, Macmillan Computer Publishing ISBN: 1571690433 Pub Date: 11/01/96 Previous Table of Contents Next Event Constants The list of Event.id in Table 9-1 is not totally comprehensive, but it covers almost every Event you could possibly receive. For this applet, we are only going to handle those Events caused by the Components we created as part of the graphical user interface (GUI). Table 9-1List of Event.id constants Constant Description ACTION_EVENT Generated for different reasons by different Components. For instance, it is called by TextField if the user presses the key after typing. It is also called by List when the user double-clicks on an item. ALT_MASK Generated if the key is down. CTRL_MASK Generated if the key is down. DOWN Generated by the down arrow key. END Generated if the key is pressed. ESC Generated by the key. F1 F12 Generated by the F1 through F12 function keys. GOT_FOCUS Generated when the current Component gains the focus. The focus is reserved for one Component at a time, and indicates that the current Component is being used by the user. HOME Generated by the key. KEY_ACTION Generated when key action has occurred. KEY_ACTION_RELEASE Generated when the key action has been released. KEY_PRESS Generated when a key has been pressed down. KEY_RELEASE Generated when a key has been released (no longer being pressed). LEFT Generated by the left arrow key. LIST_DESELECT Caused when an item in a List is deselected. This does not happen too often if you only allow one item to be selected at a time. LIST_SELECT Caused when an item in a List is selected.
Note: If you are looking for good and quality webspace to host and run your java application check Actions java hosting services
This entry was posted
on Monday, October 30th, 2006 at 12:23 am and is filed under java jsp tomcat.
You can follow any responses to this entry through the RSS 2.0 feed.
Responses are currently closed, but you can trackback from your own site.