• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getID(); ????

 
Aull Sahar
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually I'm using this method in actionPerformed()
and if I press any Button object it returns 500
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
Aull Sahar
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much for help.
 
boymin boymin
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic