Since display areas can usually be resized, it is better if the components that comprise the user interface are not assigned specific coordinates. If they were and the space was resized, they would not be fitted proportionally to the space available in the display but, rather, retain their original positions.To solve this problem and to make the programmer's task easier, the Java AWT provides several different Layout Managers that will arrange components on the display in the space available. When the space is resized, the layout manager will rearrange them accordingly.
Topics
- Discussion of basic Java AWT Layout Managers.
- Flow
- Border
- Card
- GridBag
- None
References
Useful references include:
- Sun's Java Development Kit (JDK)
- The API
- The API Class Hierarchy
- Source Code for JDK Packages
Assignment for Next Class
- Read Java AWT User Interface II class tutorial.