Oct18 GUIPart2
Oct18 GUIPart2
1
Event-driven programming
2
Swing
3
Swing
4
GUI Components
Swing
5
Swing
5
Swing
5
Swing
6
Swing
6
Swing
6
Swing
6
Swing
A menu bar is a container for menus, typically placed near the top
of a windowing interface.
7
Swing
A menu bar is a container for menus, typically placed near the top
of a windowing interface.
7
Swing
A menu bar is a container for menus, typically placed near the top
of a windowing interface.
7
Swing
Code demo.
8
Layout Managers
Swing
Containers vs Components
9
Swing
Containers vs Components
9
Swing
Containers vs Components
9
Swing
Almost every GUI built using Swing container classes will be made
up of three kinds of objects:
10
Swing
Almost every GUI built using Swing container classes will be made
up of three kinds of objects:
10
Swing
Almost every GUI built using Swing container classes will be made
up of three kinds of objects:
10
Swing
Almost every GUI built using Swing container classes will be made
up of three kinds of objects:
10
Layout Managers
11
Layout Managers
11
Layout Managers
11
Layout Managers
11
Layout Managers
12
Layout Managers
13
Layout Managers
14
Swing
15
Swing
15
Swing
15
Swing
16
Swing
16
Swing
16
Swing
16
Swing
17
Swing
18
Swing
19
Swing
19
Swing
19
Swing
19
Swing
20
Swing
20
Swing
20
Swing
21
Swing
21
Action Commands
Swing
22
Swing
22
Swing
22
Swing
23
Swing
The default value for the action command string is what’s written on
the button or the menu item.
23
Swing
The default value for the action command string is what’s written on
the button or the menu item.
23
Swing
24
Swing
Code demo
25