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!

JOptionPane glitches - need help!

843806Feb 22 2009 — edited Mar 2 2009
Hi,

I am building a java application that is full-screen. It is not set to always be on top. What happens is that the user is supposed to drag one of the green shapes onto the board. If they drag the shape and let go slowly, the JOptionPane shows up correctly. If they drag the shape and let go fast while they are dragging it, it causes problems with the display of the JOptionPane dialog. Below are some screen-shots of the problem:

[http://www.thedigitallion.com/temp/ex1.jpg]
[http://www.thedigitallion.com/temp/ex2.jpg]

The JOptionPane shows up on mouse button release because that is how I test for when they stop dragging it. It seems like it still animates the shape after the joptionpane comes up and that is why it doesn't refresh the screen afterward. Here is a code snippet:

[http://www.thedigitallion.com/temp/code.txt]

Any help would be greatly appreciated!!!

Ryan
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 30 2009
Added on Feb 22 2009
16 comments
472 views