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...
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL