• Post Reply Bookmark Topic Watch Topic
  • New Topic

creating custom cursor

 
Sri Rangan
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried using a animated gif. but system hangs. any ideas how to solve this
Cheers
Sri
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like it locks up in the sun.awt.windows.WToolkit class... so the problem is probably in some native code. Short answer : you cannot use animated GIFs as cursors.

Long answer : you may be able to fake it by using either -
a.) Multiple cursors and switching them with a thread.
b.) Using a blank cursor and drawing your image at the mouse location on top of everything (glass pane in a Swing app.)

Both of these are just suggestions... I haven't really tried either out...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!