..
> how can the size of a JPanel automatically be calculated?
Try..
panel.validate();
// then do nothing with preferred size..
..if that fails to do what's needed, I
suggest you prepare an SSCCE of the code.
<http://www.physci.org/codes/sscce>
Andrew T.
McMatt - 23 Feb 2007 19:17 GMT
Hello,
thanks for the quick reply. During the preparation of a SSCCE it
turned out that more elements are involved in it than expected.
The main reason was a layout in on of the components.
But I needed still a validate() call - namely scrollPane.validate().
Thanks for your help,
Kind regards,
Matthias
> ..
>
[quoted text clipped - 9 lines]
>
> Andrew T.