Skip to main content

[b]Mouse Click Event in Swing[/b]

2 replies [Last post]
icganesh
Offline
Joined: 2003-10-15

I have developed an application in Swing.
I have a JLabel placed as one of the component in a JPanel .I have added a mouseListener for that JLabel.
But when I click the Label action enter twice inside the mouseClicked method.Can any one Let me how to solve this problem.

Thanks in advance,
Regards,
Ganesh

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
srotman
Offline
Joined: 2003-06-16

Perhaps the [i]MouseClick on JLabel[/i] thread can provide some answers?

http://www.javadesktop.org/forums/thread.jspa?forumID=2&threadID=221&mes...

icganesh
Offline
Joined: 2003-10-15

hi,
Thanks for ur reply.
I got the solution.
Mouseevent was running inside a Thread.
Now it is working fine..

Regards,
ganesh.