• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

getID(); ????

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually I'm using this method in actionPerformed()
and if I press any Button object it returns 500
 
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much for help.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello
 
Whoever got anywhere by being normal? Just ask this exceptional tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic