Link to home
Start Free TrialLog in
Avatar of spetrowitsch
spetrowitsch

asked on

Adjust buttons, labels, ... / internationalization

Hi,

I have a tabbedPane, and some of my labels in this pane have - depending on the language - very different sizes.
I use borderLayout and GridLayout-Manager. But when the text of a label is longer than the usual size of the label, it is cutted off instead of the layout-manager adjusts the size of the label.

How does this work correct?
Avatar of spetrowitsch
spetrowitsch

ASKER

Adjusted points to 25
is the length of the label changing at runtime? if something has already been laid out, and then you change something, you have to tell the container to relayout the objects it contains.

look ath the invalidate methods on the containter class, i thihk.
Have you used setMinimumSize, SetPreferredSize, setSize etc?
The length of the labels depends on the value in the internationalization-file (ResourceBundle). this.invalidate() doesn´t adjust the size of the labels, when I call this function at the end of my jbInit-function.

No, I didn´t set the setMinimumSize, SetPreferredSize, etc. for the label, which I am adjusting in size.
ASKER CERTIFIED SOLUTION
Avatar of BillyAbbott
BillyAbbott
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial