Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is it possible to use mouse/pen gestures with Personal Java?

 
Fernando Sanz
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
I'm designing a GUI for a PDA application, and I'd like to know if I can use some type of mouse gestures. I mean in the same way as you'd drag the pen to bring up the graffiti area.
Thanks
 
Daryl Wilding-McBride
Author
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could use a Canvas and capture MouseEvents. Have a look at the DrawTest demo application that comes with the JDK 1.1.8. Then the hard part is interpreting the gestures :-).
 
Fernando Sanz
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>> You could use a Canvas and capture MouseEvents
OK, I guess it'll be then a testing work, and see what I get from each one. I'll post it once I do it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic