• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Swing Custom Cursor ( Mac styled rotating dots busy cursor)

 
Satish Rajanna
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want mac styled rotating dots busy cursor. How do I get it. I have used custom cursor with a gif image showing the rotating dots. But the cursor won't show with this image (why ?). Attached is the image .Thanks in advance.
busy.gif
[Thumbnail for busy.gif]
Busy image
 
Rob Spoor
Sheriff
Pie
Posts: 20610
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the cursor set in Windows? If so, all you need to do is set the cursor using the setCursor and Cursor.getPredefinedCursor methods.
 
Satish Rajanna
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Prime wrote:Is the cursor set in Windows? If so, all you need to do is set the cursor using the setCursor and Cursor.getPredefinedCursor methods.


Yes the cursor set is in windows. I have used getPredefindedCursor method, but when I use the default WAIT_CURSOR, all I get is an hour glass. I want the rotating dots. I have tried creating the custom cursor with the gif image shown on top. But for some reason its not displaying. When I use another gif image (without any animation and of 8bit color depth), the image is displayed as a cursor.
 
Maneesh Godbole
Saloon Keeper
Posts: 11096
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out Toolkit#createCustomCursor()
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic