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?
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?
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.
look ath the invalidate methods on the containter class, i thihk.
Have you used setMinimumSize, SetPreferredSize, setSize etc?
ASKER
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.
No, I didn´t set the setMinimumSize, SetPreferredSize, etc. for the label, which I am adjusting in size.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER