Announcement
What: Resume Writing Workshop
When: 4:10 p.m. - 5:00 p.m. on Friday, January 20th
Where: 218 Roberts
Who: Ruth Kronfuss, Director of Human Resources at Zoot Enterprises
Sponsor: Local ACM Chapter
Layout Managers
java.awt.BorderLayout
- The default layout for a JFrame.
- Five areas are defined: north, east, south, west and center.
- setLayout(new BorderLayout());
java.awt.FlowLayout
- The default layout for a JPanel.
- Components are added left to right, top to bottom, centered.
- setLayout(new FlowLayout());
java.awt.BoxLayout
- Components can be placed in either a horizontal or vertical arrangement.
- setLayout(new BoxLayout(Container target, BoxLayout.X_AXIS));
- setLayout(new BoxLayout(Container target, BoxLayout.Y_AXIS));
java.awt.GridLayout
- Components are place in a rectangular grid.
- setLayout(new GridLayout(2,2));
Lecture Code