This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
This method is defined in AWTEvent and returns the int representing the Event type. Each of the subclasses of AWTEvent usually have static int which descrip the event that occurred. In example, MouseEvent : static int MOUSE_CLICKED The "mouse clicked" event. static int MOUSE_DRAGGED The "mouse dragged" event. static int MOUSE_ENTERED The "mouse entered" event. static int MOUSE_EXITED The "mouse exited" event. static int MOUSE_FIRST The first number in the range of ids used for mouse events. static int MOUSE_LAST The last number in the range of ids used for mouse events. static int MOUSE_MOVED The "mouse moved" event. static int MOUSE_PRESSED The "mouse pressed" event. static int MOUSE_RELEASED The "mouse released" event. More than likely you have added a mouse listener to your button and 500 represents one of the above actions (probably MOUSE_CLICKED). Hope This Helps
[This message has been edited by Carl Trusiak (edited September 19, 2000).]