This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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: 10268
    
    8

.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. ;)
 
wood burning stoves
 
subject: Set cursor from a .cur file.