1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

question to know the event in which image?

Discussion in 'Java' started by stack, Sep 3, 2007.

  1. stack

    stack New Member

    Joined:
    Aug 20, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    hi,
    i have a question:ex: if i have 4 images (image1, image2, image3, image4) and i want message1 appear if i click in image1, message2 appear if i click in image2, message3 appear if i click in image3, and message4 appear if i click in image4

    how can I know if the mouse event in image1 or 2 or 3 or 4 without using the position of these images in the board?

    i want a method to tell me the event in which image...
     
  2. stack

    stack New Member

    Joined:
    Aug 20, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0

Share This Page