Cursor in Netbeans
Sorry if this is not the best place to ask about IDEs, but...
I'm having a problem regarding Netbeans and a custom cursor.
When I use Eclipse 3.0, the cursor displays as expected. In Netbeans, however, the same code makes the cursor disappear when it should be set over a component:
URL imgURL = component.class.getProtectionDomain().getCodeSource().getLocation(); /* Used to check if local directory is the expected one, and indeed it is in both IDEs */
Toolkit toolkit = Toolkit.getDefaultToolkit();
ImageIcon iconOpenHand = new ImageIcon("images/openHand.gif");
Image imageOpenHand = iconOpenHand.getImage();
Cursor openHand = toolkit.createCustomCursor(imageOpenHand, new Point(15, 15), "openHand");
If there's a better way to do it, please tell me. Thanks...
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center