Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

image instead of cursor

 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to replace mouse pointer (cursor) with an image?
I searched and found something like this, but it doesn't work:



TIA.
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
have a look this rathi ji.. Change Mouse Pointer
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Saif uddin:
have a look this rathi ji.. Change Mouse Pointer


Thanks Saif. But the code given in that link also doesn't work:

:roll:
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to use a *.ani or *.cur file.

Eric
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Eric Pascarello:
You have to use a *.ani or *.cur file.

Eric


Thanks Eric. It worked.

But can't we convert any .gif or .bmp etc file into .ani or .cur file manually (just by changing the extension)?

TIA.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65118
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by ankur rathi:
But can't we convert any .gif or .bmp etc file into .ani or .cur file manually (just by changing the extension)?

What happened when you tried it?
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bear Bibeault:

What happened when you tried it?


Browser didn't recognise it as cursor file and didn't show in place of mouse pointer. :roll:
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65118
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by ankur rathi:


Browser didn't recognise it as cursor file and didn't show in place of mouse pointer.


Question answered.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic