Well, I did go through the site mentioned in one of the earlier queries, but still i am not able to solve it........
I want an image to be displayed instead of the mouse cursor when it is over a panel.........which in the code is mainPane...........i think i am making a mistake in specifying the point.......plz help me out.......
the code i have written is as follows
public void mouseEntered(MouseEvent e) {}
// Set cursor for the frame component
Toolkit toolkit = Toolkit.getDefaultToolkit();
Image image = toolkit.getImage("icons/handwriting.gif");
Cursor c = toolkit.createCustomCursor(image , new Point(mainPane.getX(),mainPane.getY()), "img");
mainPane.setCursor (c);
}