Does someone have any idea what exactly this method return? As far as I know it returns an int but what does it mean? Any comments? Thank you.
Joined: Nov 02, 1999
what object are you calling this method on? If it is an HTTPSession object it is the unique ID of the session.
Joined: Sep 04, 2000
Actually I'm using this method in actionPerformed() and if I press any Button object it returns 500
Joined: Jun 13, 2000
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).]