"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


|