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 8 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 29, 2007 at 07:36 AM

"Boudewijn Dijkstra" <usenet@[EMAIL PROTECTED]
> wrote in message 
news:op.tpw3tuhu9s1m7x@[EMAIL PROTECTED]
> Op Mon, 19 Mar 2007 07:10:40 +0100 schreef Christian Stapfer 
> <nil@[EMAIL PROTECTED]
>:
>> As to my application possibly not being able to keep
>> up with mouse movements: although my application has
>> hardly anything other to do than to process those mouse
>> movements (i.e. storing them but also drawing a small
>> line segment connecting the last point with the current
>> point of the stroke being drawn), this seems quite
>> possible to me.
>
> Nobody should paint in an event dispatch thread.
> Just store it and issue a repaint.

I can understand your position, kind of. However,
the line drawing has to follow the dragging of
the mouse *immediately*: because, for the user,
it represents the movement of the pen.

 How, for example, would I handle rubberbanding,
if I were to follow your precept ("don't ever
draw anything in an event handler")? As compared
to rubberbanding of a large rectangle, I have
to draw a really only very tiny line segment when
incrementally drawing the pen-path from within
an event handler...

Regards,
Christian

P.S: No amount of clever coding seems to help
compensate for the fact that mouse-coordinates
are coarser than pen-coordinates on a Tablet PC
(because they are screen coordinates rather
than pen-digitizer coordinates) .
 




 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 Sat Jul 26 5:01:06 CDT 2008.