This week's book giveaway is in the Security forum.
We're giving away four copies of Penetration Testing Basics and have Ric Messier on-line!
See this thread for details.
Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Waiting for mousevents from a gui-component(JPanel)

Daniel Mondry
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i�m doing kind of an exercise-project with a (swing-based) card-game.
now i have the problem of waiting for some mouseEvents from the user. he has to click on a card, which is displayed on a JPanel, and a method has to wait until the user has done these clicks.

my problem is how to stay in the method til it has got these events...

what is the best way to accomplish this??

thanks in advance
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic