Re: Adding Scrollbars to a canvas
- From: Tor Iver Wilhelmsen <tor.iver.wilhelmsen@xxxxxxxxxxxx>
- Date: 28 May 2005 11:52:38 +0200
"Frank Meyer" <f.meyer@xxxxxxxx> writes:
> I created a canvas whre some objects are drawn. Now it could be possible
> that the width of this canvas is too large for the screen width so I would
> need horizontal scrollbars to be able to scroll to the end of the canvas. My
> canvas class extends the JPanel object so maybe I have to use JScrollPane(?)
You should put the canvas into the viewport of a JScrollPane and let
that object do what it does best.
.
- Follow-Ups:
- Re: Adding Scrollbars to a canvas
- From: Frank Meyer
- Re: Adding Scrollbars to a canvas
- References:
- Adding Scrollbars to a canvas
- From: Frank Meyer
- Adding Scrollbars to a canvas
- Prev by Date: Adding Scrollbars to a canvas
- Next by Date: Clear Screen command
- Previous by thread: Adding Scrollbars to a canvas
- Next by thread: Re: Adding Scrollbars to a canvas
- Index(es):
Relevant Pages
|