Drawing in the panel

Jesslim
2012-03-09
2013-05-28
  • Jesslim

    Jesslim - 2012-03-09

    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?

     
  • Nicolas Carranza

    hi jesslim,

    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 )

    Cheers!
    Nicolas

     
  • Jesslim

    Jesslim - 2012-03-09

    i done it….thanks

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks