aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Set cursor from a .cur file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Set cursor from a .cur file." Watch "Set cursor from a .cur file." New topic
Author

Set cursor from a .cur file.

Daniel Gen Li
Ranch Hand

Joined: Jan 02, 2010
Posts: 32
How can I set my cursor into a cursor that I already have as a .cur file? I've looked on google and etc but all I could find was ways to create cursors using a custom image. Is there a way to just create the cursor using the .cur file?


Li
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 928

I dont know much but i guess its a gif/png format rather than a cur format.
take a look that the following link : http://blog.codebeach.com/2008/02/using-custom-cursors-in-java.html
hope its helpful.

My Website: [Salvin.in] Cool your mind:[Salvin.in/painting] My Sally:[Salvin.in/sally]
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10523
    
    9

.cur files are limited only to windows platform. I would suggest generate and use cursors from images to overcome this limitation.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Daniel Gen Li
Ranch Hand

Joined: Jan 02, 2010
Posts: 32
Maneesh Godbole wrote: .cur files are limited only to windows platform.

Thank you, I've never knew that before... I guess it's limited to making cursors using pictures then lol. Thank you Maneesh and salvin for your help. ;)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Set cursor from a .cur file.