Painting graphics in a ScrollPane
1 posts in topic
Flat View  Flat View

Posted By:   Henrik_Aaen
Posted On:   Thursday, April 5, 2001 04:59 AM

How do I paint graphics in a scrollpane?

The graphics is defined as:

java.awt.Graphics lineDrawing;

now how do I show this line in a scrollpane?

Re: Painting graphics in a ScrollPane

Posted By:   Finlay_McWalter  
Posted On:   Thursday, June 14, 2001 10:00 PM

Scrollpane is a container. You don't want to be directly drawing to it. Instead, create a Canvas object (of the size you want) and draw on it (in its paint and update methods). Add this canvas to the scrollpane.
About | Sitemap | Contact