Creates a new cursor object with the specified type.
Parameters: type - the type of cursor throws: IllegalArgumentException - if the specified cursor typeis invalid
Creates a new custom cursor object with the specified name.
Note: this constructor should only be used by AWT implementations
as part of their support for custom cursors. Applications should
use Toolkit.createCustomCursor().
Parameters: name - the user-visible name of the cursor. See Also:java.awt.Toolkit.createCustomCursor
Returns the name of this cursor.
a localized description of this cursor. since: 1.2
getPredefinedCursor
public static Cursor getPredefinedCursor(int type)(Code)
Returns a cursor object with the specified predefined type.
Parameters: type - the type of predefined cursor the specified predefined cursor throws: IllegalArgumentException - if the specified cursor type isinvalid
Returns a system-specific custom cursor object matching the
specified name. Cursor names are, for example: "Invalid.16x16"
Parameters: name - a string describing the desired system-specific custom cursor the system specific custom cursor named exception: HeadlessException - ifGraphicsEnvironment.isHeadless returns true