1

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.

Josh Lee
  • 171,072
  • 38
  • 269
  • 275
Frank
  • 30,590
  • 58
  • 161
  • 244
  • do you mean the mouse pad on a laptop? or some external device? – pstanton Dec 03 '09 at 19:20
  • I mean the mouse pad. Thanks for the answers and questions, now I am more clear of what I was looking for, just write a program that keeps track of the mouse/finger movements to get user handwriting. – Frank Dec 03 '09 at 19:37

1 Answers1

2

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.

pstanton
  • 35,033
  • 24
  • 126
  • 168
  • Great idea, so there's no need for any special pen, just use a finger to draw or write into a Java app. – Frank Dec 03 '09 at 19:34