Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Removing a MouseListener

801931Apr 29 2008 — edited Apr 30 2008
Hi!
I'm have a grid of labels each with a mouseListener attached so that when I click on the label, the picture on it changes. But I only want this to happen once, as in when I click a label which has already been click I don't want it to change its picture again.

I've tried out removeMouseListener() but it hasn't been of any help. Does anyone know an elegant way of how I can achieve this?

Thanks and regards,
Krt_Malta
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 28 2008
Added on Apr 29 2008
8 comments
789 views