File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Move drawLine around without redrawing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Move drawLine around without redrawing" Watch "Move drawLine around without redrawing" New topic
Author

Move drawLine around without redrawing

Soenke Klinkhammer
Greenhorn

Joined: Oct 21, 2001
Posts: 9
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

Joined: Sep 29, 2000
Posts: 8521
Look at JViewPort. It might be what you are looking for.


"JavaRanch, where the deer and the Certified play" - David O'Meara
Soenke Klinkhammer
Greenhorn

Joined: Oct 21, 2001
Posts: 9
Thanks for your advice, Cindy. Looks like I can use that
 
 
subject: Move drawLine around without redrawing