File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 19649
    
  18

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: 10167
    
    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)
 
Similar Threads
how to make swing components ignore the user events ??
Set cursor from a .cur file.
Image as a mouse cursor in javascript or DHTML
custom cursor in XOR mode
unable to change the cursor to string.