Hiding Mouse Cursor after Delay

Discussion in 'Java' started by Jacqueline Snook, Dec 13, 2004.

  1. Hi,

    Is it possible to hide the mouse cursor using Java Swing if it is not
    moved for a certain amount of time?

    Many thanks,

    Jacqueline
     
    Jacqueline Snook, Dec 13, 2004
    #1
    1. Advertising

  2. "Jacqueline Snook" <> schreef in bericht
    news:...
    > Hi,
    >
    > Is it possible to hide the mouse cursor using Java Swing if it is
    > not moved for a certain amount of time?


    In your component, do:

    setCursor(getToolkit().createCustomCursor(
    new BufferedImage(3, 3, BufferedImage.TYPE_INT_ARGB),
    new Point(0, 0), "null"));
     
    Boudewijn Dijkstra, Dec 13, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?VG9tYXMgS2VwaWM=?=

    Changing DEFAULT cursor to WAIT cursor in ASP

    =?Utf-8?B?VG9tYXMgS2VwaWM=?=, Apr 5, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    2,326
    Bruce Barker
    Apr 5, 2005
  2. Pekka Jarvela

    Hiding cursor

    Pekka Jarvela, May 12, 2004, in forum: C++
    Replies:
    2
    Views:
    682
    Julie
    May 12, 2004
  3. tom arnall
    Replies:
    6
    Views:
    1,286
    Ian Shef
    Jan 18, 2007
  4. invy
    Replies:
    4
    Views:
    392
    CBFalconer
    Dec 28, 2006
  5. dmaziuk
    Replies:
    3
    Views:
    583
    Chris Gonnerman
    Jan 25, 2011
Loading...

Share This Page