Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Waiting for mousevents from a gui-component(JPanel)  RSS feed

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

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
daniel
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!