可以看jdk document阿使用java.awt.Component的setCursor方法设置.cursor的构造器和主要方法如下:Constructor Summary Cursor(int type) Creates a new cursor object with the specified type. protected Cursor(String name) Creates a new custom cursor object with the specified name. Method Summary protected void finalize() Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. static Cursor getDefaultCursor() Return the system default cursor. String getName() Returns the name of this cursor. static Cursor getPredefinedCursor(int type) Returns a cursor object with the specified predefined type. static Cursor getSystemCustomCursor(String name)
int getType() Returns the type for this cursor. String toString() Returns a string representation of this cursor. /*--by bookbobby(书呆)-+ | | | 你说爱我只是习惯 | | 再也不是喜欢 | | 我给你的爱 | | 已不再温暖 | | | +--by bookbobby(书呆)-*/
可以看jdk document阿使用java.awt.Component的setCursor方法设置.cursor的构造器和主要方法如下:Constructor Summary
Cursor(int type)
Creates a new cursor object with the specified type.
protected Cursor(String name)
Creates a new custom cursor object with the specified name.
Method Summary
protected void finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
static Cursor getDefaultCursor()
Return the system default cursor.
String getName()
Returns the name of this cursor.
static Cursor getPredefinedCursor(int type)
Returns a cursor object with the specified predefined type.
static Cursor getSystemCustomCursor(String name)
int getType()
Returns the type for this cursor.
String toString()
Returns a string representation of this cursor.
/*--by bookbobby(书呆)-+
| |
| 你说爱我只是习惯 |
| 再也不是喜欢 |
| 我给你的爱 |
| 已不再温暖 |
| |
+--by bookbobby(书呆)-*/