I wanted to create a custom cursor. Instead of the standard, I tried to install this:
but the last effect was terrible. The edges were black and jagged:

exactly the same as in this applet when loading.
The code is as follows:
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));
Is there a way to work around PNG with smooth edges? It seems unbelievable that there is still such an error in Java.
peter source share