aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Java Swing Custom Cursor ( Mac styled rotating dots busy cursor) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Java Swing Custom Cursor ( Mac styled rotating dots busy cursor)" Watch "Java Swing Custom Cursor ( Mac styled rotating dots busy cursor)" New topic
Author

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

Satish Rajanna
Greenhorn

Joined: Nov 17, 2009
Posts: 5
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.



[Thumbnail for busy.gif]

Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19718
    
  20

Is the cursor set in Windows? If so, all you need to do is set the cursor using the setCursor and Cursor.getPredefinedCursor methods.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Satish Rajanna
Greenhorn

Joined: Nov 17, 2009
Posts: 5
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

Joined: Jul 26, 2007
Posts: 10451
    
    8

Check out Toolkit#createCustomCursor()


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Swing Custom Cursor ( Mac styled rotating dots busy cursor)