• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

control mouse pointer movement

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!