I created a panel that draws rectangles as the user drags the mouse
over an image.  The rectangles are of fixed height(the height of the
image) and cannot overlap.  The logic works fine, and I can stop the
dragging when the mouse event is contained inside of an already
existing rectangle.

My problem is when the mouse is moved very fast, the mouse event is
not processed quick enough, and the rectangles end up stopping well
before running into another rectangle.  This means that the size of
the rectangle is not being recomputed at the same speed as the check
for containment is happening (yet they are in the same block of code)

Overall, what are the best ways to improve performance when doing
mouse moved and mouse dragged on complex GUIs?

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to