• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

creating custom cursor

 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried using a animated gif. but system hangs. any ideas how to solve this
Cheers
Sri
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
reply
    Bookmark Topic Watch Topic
  • New Topic