Re: What's the secret to using JSeparator?
- From: Chris Smith <cdsmith@xxxxxxx>
- Date: Tue, 3 Jan 2006 20:30:15 -0700
nospam@xxxxxxxxxx <jjdumb@xxxxxxxxx> wrote:
> e.g.
> pnlCenter.setLayout(new SomeLayoutWithHorizontalFills());
> pnlCenter.add("hfill", new JSeparator.HORIZONTAL);
Presumably, you meant "new JSeparator(JSeparator.HORIZONTAL)"? The code
above doesn't compile.
> You can find a great layout manager at
> http://www.datadosen.se/riverlayout/ which supports horizontal fills
Of course, if your goal is to find a layout manager that supports
horizontal fills, you could just use BorderLayout, BoxLayout, GridLayout
(with only one column), SpringLayout, or even OverlayLayout or
CardLayout, from the standard API.
RiverLayout looks like it might be nice from some other perspectives,
but it's hardly necessary to add a third-party layout manager just to
achieve spanning the whole width of its container.
--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
.
- References:
- Re: What's the secret to using JSeparator?
- From: nospam@xxxxxxxxxx
- Re: What's the secret to using JSeparator?
- Prev by Date: Re: "Unveiling" an image
- Next by Date: Re: Problem with SWT and Layouts
- Previous by thread: Re: What's the secret to using JSeparator?
- Next by thread: Re: What's the secret to using JSeparator?
- Index(es):