>> during execution I'm changing the preferred size of some components.
>
> Why?
>> These are contained in a JPanel with a borderlayout.
>> However when updating the layouter ...
>
> Which involves what exactly? What Java code do you
> use when 'updating the layouter'?
>>> during execution I'm changing the preferred size of some components.
>>
>> Why?
>
> Just because I have a multiline label
Label or JLabel?
>..and when the text changes, so may
> its preferred height to display the lines (at most 2 or 3).
consider placing the label inside a JScrollPane, or putting the
message in a J/Dialog
>>> These are contained in a JPanel with a borderlayout.
>>> However when updating the layouter ...
[quoted text clipped - 3 lines]
>
> I want ..
I did not ask what you want! I asked what exact
code you typed to attempt to achieve that.
>..the borderlayout to update the sizes of SOUTH as I changed the
> preferred size of it.
Most UI components can determine their own preferred size
without you setting it specifically. In fact, that you
need to is generally a sign of trouble.
>>> ...how can I order the panel to recalculate and repaint everything
>>> without having to resize the panel?
>>
>> Tried pack()/validate()?
..
> A JPanel does not support pack(),
Oh yeah, right. Try packing the frame.
>.. and I've tried invalidate()
'invalidate()' is not 'validate()'
> ..without succes.
If you do not discover the answer based on these tips, I
suggest you post a short compilable example of code that fails.
<http://mindprod.com/jgloss/sscce.html>
Oh, BTW - the best group for such matters is
'comp.lang.java.gui' .

Signature
Andrew Thompson
physci, javasaver, 1point1c, lensescapes - athompson.info/andrew
Chris Smith - 05 Jan 2006 17:04 GMT
> >> Tried pack()/validate()?
> ..
[quoted text clipped - 7 lines]
>
> > ..without succes.
In Swing, use revalidate(). In AWT, invalidate() and then validate()
the appropriate container.

Signature
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation