Category / Section
How do LayoutManagers help layout localized apps?
1 min read
Localization
Frequently in applications localized for multiple languages, the default layout is incapable of handling the different strings supplied for different languages.
The layout for the dialog in this sample is managed by a GridBagLayout. In addition, the form provides "PreferredSize" information for the controls based on their text, thereby letting the layout manager always provide an optimal layout.
We use XMLfiles to simulate localized resources, because it would be much easier for you to test the efficiency of the layout manager by simply modifying the XMLfiles or by quickly creating new XMLfiles.