• Post Reply Bookmark Topic Watch Topic
  • New Topic

Cursor Style  RSS feed

 
Narayanan Jayaraman
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anybody know how to change cursor style (hourglass, default ) in Java swing ? Appreciate your help. Thanks
 
Wayne L Johnson
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you simply want to change the cursor, do something like this:

You can look at the "java.awt.Cursor" class to see all of standard cursors that you can use (Cursor.WAIT_CURSOR is just one of them).
If, however, you want to create and use your own cursor, look at "java.awt.Toolkit.createCustomCursor(...)".
[ September 15, 2003: Message edited by: Wayne L Johnson ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!