Custom PNG cursor - edges are not smooth
<p>I wanted to create a custom cursor. Instead of the default one I tried to set this: <img src="http://i.stack.imgur.com/wTGWs.png" alt="enter image description here">, but the final effect was terrible. The edges were black and jagged: </p>

<p><img src="http://i.stack.imgur.com/yQQcf.png" alt="enter image description here"></p>

<p>, exactly like in this <a href="http://java-elrincondetucasa.blogspot.com/2010/07/cursor-personalizado.html" rel="nofollow">applet</a> at the bootom.</p>

<p>The code is as follows:</p>

<pre><code>final Image customCursor = new ImageIcon("C:\\Users\\my_name\\Desktop\\apple.png").getImage();
final Point hotspot = new Point(0, 0);
final String name = "Cursor";

this.setCursor(getToolkit().createCustomCursor(customCursor, hotspot, name));
</code></pre>

<p>Is there any workaround to get PNG cursor with smooth edges? It seems unbelievable that there is still such a bug in Java.</p>
