This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Move drawLine around without redrawing
 
Similar Threads
Unable to draw shapes beyond the margins of a JPanel
How to represent sea in maps?
'Moving' a circle along a line
unusual behaviour of subclass of JPanel
how to draw lines without change background's image?