By using the DrawingSurface.java, we can see the detail of pressure, x ,y and so on. But how paint in that panel? my task is sign a signature in the panel and detect the x, y coordinates. I can detect the coordinate but cannot draw.the For mouse listener i can use the g.fillRect(X, Y, 5, 5) for painting. But no pen listener, how?
you should be able to paint on the panel created by the DrawingSurface.java example (it does a "g2d.draw(new Line2D.Float(prevLoc, loc))"). Does the JPen Demo work on your system? ( http://sourceforge.net/apps/mediawiki/jpen/index.php?title=Demo )
i done it….thanks
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.