• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

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

 
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
 
Sheriff
Posts: 21502
96
Chrome Eclipse IDE Java Spring Ubuntu VI Editor 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.
 
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out Toolkit#createCustomCursor()
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!