This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes getID();   ???? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "getID();   ????" Watch "getID();   ????" New topic
Author

getID(); ????

Aull Sahar
Greenhorn

Joined: Sep 04, 2000
Posts: 14
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.
Paul Wetzel
Ranch Hand

Joined: Nov 02, 1999
Posts: 107
what object are you calling this method on? If it is an HTTPSession object it is the unique ID of the session.
Aull Sahar
Greenhorn

Joined: Sep 04, 2000
Posts: 14
Actually I'm using this method in actionPerformed()
and if I press any Button object it returns 500
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
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).]


I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
Aull Sahar
Greenhorn

Joined: Sep 04, 2000
Posts: 14
Thank you very much for help.
boymin boymin
Greenhorn

Joined: Dec 04, 2004
Posts: 1
hello
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getID(); ????
 
Similar Threads
Dynamic tabIndex
what is the prob !!!
Application Related
Java Reflection
applet within browser not releasing file resource