• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 22784
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check out Toolkit#createCustomCursor()
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic