I made a custom cursor using this tutorial. Problem is, as soon as it changes, i just get nothing. The cursor is invisible. I tried the pencil image given there, a custom image i quickly have drawn in paint, but they all don't work.
public Cursor stoneCursor;
Toolkit toolkit = Toolkit.getDefaultToolkit();
Image image = toolkit.getImage("pencil.gif");
Point hotspot = new Point(0,0);
stoneCursor = toolkit.createCustomCursor(image, hotspot, "Stone");
getContentPane().setCursor(stoneCursor);
This is inside a JFrame ofcourse.
". If the image to display is invalid, the cursor will be hidden (made completely transparent), and the hotspot will be set to (0, 0)." This is written in the javadoc of createCustomCursor(), but it should work with the pencil.gif?
Thanks for the answers in advance! :)