[3716] in java-interest
How to force relayout when Label text size changes?
daemon@ATHENA.MIT.EDU (Dave Lennert)
Wed Nov 22 22:17:17 1995
To: java-interest@java.sun.com
Date: Wed, 22 Nov 95 17:33:32 PST
From: Dave Lennert <davel@ibeam.jf.intel.com>
I'm using a (column of) Labels that are in a Panel managed by
GridLayout (which in turn is in a Panel managed by BorderLayout).
At one point, I change the text in the labels (via setText()) and cause
the size of the text to grow. However, this doesn't appear to cause
the Label fields to grow (or the layout manager to relayout to allow
for the larger text).
I tried explicitly calling layout() against the Panel managed by
BorderLayout, and the size did adjust, but not apparently large
enough as the text was still not completely drawn.
What should I be doing in order to cause a correct relayout when I
change the size of the text displayed in a Label?
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com