Hi,
i have made a cad application using swings. it includes the feature of snap-to-grid. the application uses a custom mouse cursor over a JPanel which is the drawing surface. i have used the Robot class to restrict the mouse movement to the grid points. but, the cursor vibrates a lot on movement. i feel this is because when the user moves the mouse the system first displays the cursor at the new position and then the robot class moves it to a grid point. what can be an alternate for this problem? please suggest.
-----------
Amit