Waiting for mousevents from a gui-component(JPanel)
posted 8 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...