Skip to Main Content

Java SE (Java Platform, Standard Edition)

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!

MouseListener problem

843807Mar 11 2005 — edited Mar 14 2005
Hello,

I have the following code:

public void mouseReleased(MouseEvent e){
PersonalDialog tmpPersonalDialog = new PersonalDialog(myFrame);
tmpPresonalDialog.setVisible(true);
}

If I click over the button too fast, the dialog will be shown (and instantiated) twice (one appears behind the other).

How can I avoid this problem?

I�ve tried to remove the listener, hide the buttons...

I have detected this problem because the application is running on a slow machine.

Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 11 2005
Added on Mar 11 2005
3 comments
121 views