posted 14 years ago
I've got a panel "top" containing several "sub" panels, I add "top" to the contentPane of a JDialog and I want to set the size of that dialog according to the size of "top". I use a BoxLayout for "top".
I started with setting the dialog's size with fixed values - works
then I tried to get the size of "top" and wanted to use this, but I get zero as width/height.
Grateful for any hint!