i want to hide the mouse arrow whenever i run my application so that
it acts like a screensaver. i included this codes and when i run
it,my screen will not show up..can anyone help me with this..thanks..
//an image show in the middle of the screen
img = Toolkit.getDefaultToolkit().getImage("action_b.gif");
cp.add(new JLabel(new ImageIcon(img)));
ImageIcon blank = new ImageIcon("star.gif");
Cursor cr = Toolkit.getDefaultToolkit().createCustomCursor
(blank.getImage(), new Point(0, 0), "Blank");
this.setCursor(cr);
i have tried cp.setCursor(cr);
and it too doesn't work..