Is it possible to determine the type/name of the cursor displayed on the screen?

Jon Wingfield

The cursor displayed is dependent on the Component over which the mouse is positioned. The current cursor can be obtained by getCursor() on the Component. The Cursor class has a getName() method which returns a user-readable name for the cursor.
The Cursor class also has a few static methods to return common predefined Cursors used by the windowing system.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact