5.7 CursorIntroduced in Java 1.1, the Cursor class provides the different cursors that can be associated with a Component. Previously, cursors could only be associated with a whole Frame. Now any component can use fancy cursors when the user is interacting with the system. To change the cursor, a component calls its setCursor() method; its argument is a Cursor object, which is defined by this class.
There is still no way to assign a user-defined cursor to a Component. You are restricted to the 14 predefined cursors.
Cursor ConstantsThe following is a list of Cursor constants. The cursors corresponding to the constants are shown in Figure 5.6.
public final static int DEFAULT_CURSOR Cursor Methods
|
|