Hi,

I have encountered a strange problem (maybe bug) when using
PBoundsHandle from piccolo extras package. Run the following code:

<code>
import javax.swing.SwingUtilities;

import edu.umd.cs.piccolo.nodes.PPath;
import edu.umd.cs.piccolox.PFrame;
import edu.umd.cs.piccolox.handles.PBoundsHandle;


public class RemainingCursor extends PFrame  {

        public void initialize() {
                PPath rectangle = PPath.createRectangle(0, 0, 100, 100);
                PBoundsHandle.addBoundsHandlesTo(rectangle);
                getCanvas().getLayer().addChild(rectangle);
        }

        public static void main(String[] args) {
                SwingUtilities.invokeLater(new Runnable() {
                        public void run() {
                                new RemainingCursor().setVisible(true);
                        }
                });
        }
}

</code>

Now:
1) place mouse cursor over any handle of the rectangle (mouse cursor
will change),
2) rotate your mouse wheel without moving mouse cursor,
3) move mouse cursor outside of the handle - mouse cursor from 1) will
remain

It seems that MOUSE_WHEEL_EVENT somehow corrupts nodes on pickPath and
causes that MouseCursorUpdateHandler from PBoundsHandle doesn't pop
the cursor during mouseExit method invocation. Could you give any
suggestions on fixing it?

Cheers,
Dominik
-- 
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en

Reply via email to