Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Move drawLine around without redrawing

 
Soenke Klinkhammer
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey folks,
my problem is that I'm trying to draw a line (..a curve etc.) in a panel. However, the line (, curve..) is much longer than the dimensions of my panel. So, I was hoping that there is some kind of container in which I can draw my line or whatsoever once and then just move the container around within my panel (on mousedrag e.g.).
(Like the applet on this page... Example Just drag the mouse around)
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at JViewPort. It might be what you are looking for.
 
Soenke Klinkhammer
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your advice, Cindy. Looks like I can use that
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic