How do you create custom cursors with the Java 2 platform?

John Zukowski

The createCustomCursor() method of the Toolkit class provides for the ability to create a cursor out of an Image.

When creating custom cursors, be sure to take advantage of the hints available from the getBestCursorSize() and getMaximumCursorColors() methods.