Search code examples
javatouchpad

How to enter info from notebook touch pad with Java


I wonder if there is any sample Java program that shows how to get info from notebook touch pads, for instance if I want to develop a Java app that can get users' handwriting from the touch pad. It's like drawing with a mouse into a canvas, except I want to use my finger to enter info.


Solution

  • if you're talking about the mouse pad on a laptop, you could just create a MouseMotionListener that tracks the mouse's location and creates an array of coordinates.