• Post Reply Bookmark Topic Watch Topic
  • New Topic

Waiting for mousevents from a gui-component(JPanel)

 
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
 
Paper has not yet been outlawed – so let your Java Swing application print with wild abandon: JPDF
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!