Waiting for mousevents from a gui-component(JPanel)
posted 9 years ago
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