Hiding Mouse Cursor after Delay

J

Jacqueline Snook

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
 
B

Boudewijn Dijkstra

Jacqueline Snook said:
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"));
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top