Hi, > one final question. when drawing a freehand stroke i had been using the > mouseDragged action listener to run the paint method to draw a consecutive > straight lines from one point to the next (as i had always asumed it would > be done) however they are not recognised as one single stroke but as a > series of seperate joined lines which means they cannot be selected in their > entirity witha mouse click. > > long story short.... is there another way to draw a freehand stroke to avoid > this? grouping the lines somehow?? > > As i said before im new to both java and svg so im sorry about what are > probably pretty stupid questions.
How about like this draw your freehand stroke object using Java Shape, then convert that Shape.pathIterator into SVG Path Element in one go. or Put that separate joined lines into under single <g> element. Regards Tonny Kohar -- Sketsa SVG Graphics Editor http://www.kiyut.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]