JOptionPane glitches - need help!
843806Feb 22 2009 — edited Mar 2 2009Hi,
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