The layout classes provide easy-to-use approaches to component layouts that are powerful enough to come up with polished device independent screen designs. One has to take note though of the special capabilities of each layout class, and use them accordingly. For instance,
BorderLayout is useful in applications where stretching a widget to occupy all available space along a particular axis will not cause distortions. Similarly,
GridLayout can be a very attractive option when equally sized elements need to be arranged in the form of a matrix as in a menu.
Of all the layout classes currently available,
GroupLayout is the most accomplished. It was originally developed to support visual design tools, and as a result, has the capability to support ...