Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Move drawLine around without redrawing  RSS feed

 
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)
 
"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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!