Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

sahar90

hi every body! is there any one can explain what is the diffrences among mouseReleased and mousePressed and mouseClicked_ the methods of mouseListener in java?

  • 2 years ago
  • 2 years ago

  • This Question is Closed
  1. mas_gh90
    Best Response
    You've already chosen the best response.
    Medals 0

    I told you Sahar.wasn't it enough? mouseClicked it the click u make (ie. the press and the release). mousePressed is just the pressing action. u dont need to realese for it to work. isn't it what you want?

    • 2 years ago
  2. mas_gh90
    Best Response
    You've already chosen the best response.
    Medals 0

    you can also read this link,it can be useful,I guess=) http://www.coderanch.com/t/333152/GUI/java/difference-between-mouseClicked-mousePressed

    • 2 years ago
  3. sahar90
    Best Response
    You've already chosen the best response.
    Medals 0

    thanks dear mas but i have problems with adding picture! can i add two or more picture to only one method?

    • 2 years ago
  4. sahar90
    Best Response
    You've already chosen the best response.
    Medals 0

    mas do you think which one is better for our project??

    • 2 years ago
  5. mas_gh90
    Best Response
    You've already chosen the best response.
    Medals 0

    between mouse click and mouse press you mean? you know that I don't know how to add pictures=((

    • 2 years ago
  6. sahar90
    Best Response
    You've already chosen the best response.
    Medals 0

    yes i meant between those you mentioned

    • 2 years ago
  7. mas_gh90
    Best Response
    You've already chosen the best response.
    Medals 0

    I think mouse clicked is better,what's A's opinion ,ask him...

    • 2 years ago
  8. mas_gh90
    Best Response
    You've already chosen the best response.
    Medals 0

    you see if we want a cell to open it's much better to click and release not just pressing the right or left click this way the user have more time to change her opinion.if you use press the game will be more difficult...I think...anyway I don't think that take much of a difference...

    • 2 years ago
  9. mas_gh90
    Best Response
    You've already chosen the best response.
    Medals 0

    what did you understand for the saving button?

    • 2 years ago
  10. sahar90
    Best Response
    You've already chosen the best response.
    Medals 0

    i think so... thanks dear nothing up until now

    • 2 years ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.