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 4 of 11 Topic 759 of 843
Post > Topic >>

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

by "Chris Uppal" <chris.uppal@[EMAIL PROTECTED] > Mar 18, 2007 at 05:09 PM

Christian Stapfer wrote:

> 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 [...]

A couple of thoughts.

If the referenced article is correct then the system is only coalescing
mouse
events that you haven't consumed -- which means there should only be a
problem
if you are not keeping up with mouse movements.  In such a case, you have
a
problem /anyway/.  The normal system behaviour attempts to compensate for
that,
but if the strategy it uses -- chucking stuff away instead of buffering it
up -- is unsuitable (which sounds likely for any kind of mouse drawing),
then
the obvious solution is to do the buffering yourself, instead of putting
the
slow processing inline with each event as it happens.

Another thought is that the tablet's Java implementation may have the AWT
method Component.coalesceEvents() available for override in your custom
Component.  I have never tried it myself, but it looks as if you can
override
that to control what events are coalesced.

    -- chris
 




 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 Wed Dec 3 14:56:29 CST 2008.