Article View: borland.public.jbuilder.java.swing
Article #7863FlowLayout and JScrollPane
From: Thomas G�lden (p)
Date: Sun, 03 Dec 2000 00:00
Date: Sun, 03 Dec 2000 00:00
22 lines
1403 bytes
1403 bytes
I try to develop an image browser, where thumbnails of images are put in rows. So to use the FlowLayout as the layout for my panel seems to be the right choice, because it puts components in a new row when one row is full, depending on the width of the panel. However, when the rows extend the height of my panel I would like to show a scrollbar on the right of the panel. So I thought to put a scrollpane into my panel. But this results in a different behaviour of my FlowLayout since new rows are not created and a horizontal scrollbar is created at the bottom. I would like to have the original behaviour of my FlowLayout kept, and only have a vertical scrollbar created, when I have to many rows for my panel to display. How can I achive this behaviour ? Thanks Thomas G�lden Thomas.Guelden@t-online.de
Technical Details
Message-ID:
<90dkq2$fr4@bornews.inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111d45,282a839afa7c07f,start X-Google-Attributes: gid111d45,public From: "Thomas G�lden \(p\)" <Thomas.Guelden@t-online.de> Subject: FlowLayout and JScrollPane Date: 2000/12/03 Message-ID: <90dkq2$fr4@bornews.inprise.com> X-Deja-AN: 700587640 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Organization: Bayerisches Geologisches Landesamt X-MSMail-Priority: Normal Reply-To: "Thomas G�lden \(p\)" <Thomas.Guelden@t-online.de> Newsgroups: borland.public.jbuilder.java.swing