Java GUI (intro)

Things to remember ...

Hello World!

Hierarchy of Components

Hierarchy of Components

Using Top Level Containers

Adding Components to a Content Pane

Adding to Content Panes

Using Layout Managers

FlowLayout

Border Layout

Border Layout

GridBagLayout

GridBagLayout (cont)

GridBagLayout (cont)

Giving life to your GUI components

Implementing a Listener

Multiple Listeners

Inner Classes

Using inner classes

Anonymous inner classes

Compare

Reasons for inner classes