Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Machine > Re: How do I ge...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 11 Topic 759 of 816
Post > Topic >>

Re: How do I get smooth handwriting on a Tablet PC using Java2/Swing?

by "Christian Stapfer" <nil@[EMAIL PROTECTED] > Mar 18, 2007 at 03:37 PM

"Boudewijn Dijkstra" <usenet@[EMAIL PROTECTED]
> wrote in message 
news:op.tpdz5dng9s1m7x@[EMAIL PROTECTED]
> Op Sat, 17 Mar 2007 07:08:31 +0100 schreef Christian Stapfer 
> <nil@[EMAIL PROTECTED]
>:
>> I have written a distributed presentation/whiteboarding application
>> (Java2/Swing) for online-tutoring. Currently I use a graphics tablet to

>> draw
>> and write on the whiteboard.
>>     Now I would like to switch from using a separate graphics tablet to
>> using the stylus of a Tablet PC. However, my Java application seems to 
>> drop
>> a great many mouse drag events, which results in hardly legible 
>> handwriting
>> (not so with native Tablet PC applications like Windows Journal).
>>
>>  http://www.freesoft.org/software/tablet-java/
suggests patching the
Java
>> runtime to solve this problem - an idea from which I instinctively 
>> recoil in
>> horror. (I'd rather rewrite the whole thing in C#, which I even might
>> consider a good occasion to finally learn a reasonable amount of C# -
>> although, sadly, Java's level of platform independence would be lost in

>> the
>> process.) Does anyone of you know another (less hackish) way to get
more
>> mouse-path information in a Java2/Swing application?
>
> java.awt.MouseInfo.getPointerInfo().getLocation()

Thank you very much for your reply. - I'm not sure whether
this helps to solve my problem, however.
 There are actually two problems involved:

  1. How to get high-resolution mouse-drag events
  2. How to get high-resolution stylus positioning information

As I understand the situation, neither of these two problems
is really solvable with java.awt.MouseInfo.getPointerInfo().getLocation()
in itself: the resolution is not as high as it should be on
a tablet PC (the resolution of the digitizer is not the same
- or at the very least need not be the same - as the resolution
of the screen: but java.awt.MouseInfo.getPointerInfo().getLocation()
is). And continuous polling of the mouse position information
is completely out of the question: I need suitable events.

  Actually I'm now slowly drifting in the direction of reimplementing
the whole program in C#, since being able to produce high-quality
handwriting during online-tutoring sessions with a tablet PC would
be great.

Regards,
Christian
 




 11 Posts in Topic:
How do I get smooth handwriting on a Tablet PC using Java2/Swing
"Christian Stapfer&q  2007-03-17 07:08:31 
Re: How do I get smooth handwriting on a Tablet PC using Java2/S
"Boudewijn Dijkstra&  2007-03-18 14:37:51 
Re: How do I get smooth handwriting on a Tablet PC using Java2/S
"Christian Stapfer&q  2007-03-18 15:37:22 
Re: How do I get smooth handwriting on a Tablet PC using Java2/S
"Chris Uppal" &  2007-03-18 17:09:47 
Re: How do I get smooth handwriting on a Tablet PC using Java2/S
Tom Hawtin <usenet@[EM  2007-03-18 20:34:12 
Re: How do I get smooth handwriting on a Tablet PC using Java2/S
"Christian Stapfer&q  2007-03-19 07:10:40 
Re: How do I get smooth handwriting on a Tablet PC using Java2/S
"Boudewijn Dijkstra&  2007-03-28 23:11:44 
Re: How do I get smooth handwriting on a Tablet PC using Java2/S
"Christian Stapfer&q  2007-03-29 07:36:02 
Re: How do I get smooth handwriting on a Tablet PC using Java2/S
"Boudewijn Dijkstra&  2007-04-02 22:30:10 
Re: How do I get smooth handwriting on a Tablet PC using Java2/S
"Christian Stapfer&q  2007-04-03 06:43:17 
Re: How do I get smooth handwriting on a Tablet PC using Java2/S
"Boudewijn Dijkstra&  2007-04-03 18:27:28 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 17:39:30 CDT 2008.