14.18 Introduction to Layout Managers
Layout managers arrange GUI components in a container for presentation purposes. You can use the layout managers for basic layout capabilities instead of determining every GUI component’s exact position and size. This functionality enables you to concentrate on the basic look-and-feel and lets the layout managers process most of the layout details. All layout managers implement the interface
LayoutManager (in package
setLayout method takes an object that implements the
LayoutManager interface as an argument. There are basically three ways for you to arrange components in a GUI:
Absolute positioning: This provides the greatest level of control over a GUI’s appearance. By setting ...