Border title cut off
I have created a titled border for a panel nested within another panel using:
panel.setBorder(BorderFactory.createTitledBorder("blahblah");
Unfortunately, the title is longer than the panel, so only part of the title is visible. Is there some way to force the panel size to match the border title, without resorting to absolute positioning? I am using layout managers and the title will be translated into different languages.
Thanks.

