Containers and LayoutManagers
What is a LayoutManager?
The LayoutManagers
FlowLayout
FlowLayout
FlowLayout
Setting FlowLayout Alignment
Separating Components with Space in a FlowLayout
BorderLayout
Example of BorderLayout
CardLayout
Using CardLayouts
Flipping Cards
GridLayout
GridLayout
GridBagLayout
Using GridBagLayout
GridBagConstraints
A Grid for the Calculator
gridx and gridy
gridwidth and gridheight
fill
ipadx and ipady
insets
anchor
weightx and weighty
A GridBagLayout Example
BoxLayout
Box
Rigid Areas
Glue
Glue
Struts
The Calculator with BoxLayout
Manually Positioning Components
How to Manually Position Components
What is a Container?
The Two Kinds of Containers
Panels
Panels
Nesting Panels
Nesting Panels Example
A Calculator with Panels
Windows
Frames
Sizing Frames
Frame Example
JFrame Example
Event Handling in Swing
Centering a Frame on the Screen
Window Events
Window Events Example
Dialogs
Methods of Dialogs
Examples of Dialogs
Subclassing java.awt.Dialog
Retrieving Information from a Dialog via Modality
Retrieving Information from a Dialog via Polling
Retrieving Information from a Dialog via Callbacks
Week 8 Exercises
Start
|
Cafe au Lait
Copyright 1997-2003 Elliotte Rusty Harold
Last Modified April 19, 2003