Hi,
I am a java beginner. I have an annoying problem . Im trying to make a card game with labels.
My constructor, which has the GUI, has mouseListeners on the card labels... which can set other mouse listeners on new cards...for example when I click a card to play it...or when i draw a fresh one( which need to be made clickable)
My question: how can I set the mouse listeners from executing multiple times at a single click ? First click works normally, but next onex executes 2, 4, 6 etc times , at a single click....playing multiple cards at a time
basically I want to be able to do some stuff when clicking AND refresh listeners ( or put new ones on new cards )...but they should execute only once per click
Any help ?