ITSE 2317 Intermediate Java
Panels, Labels, Text Fields, and Buttons
Lecture # 05
Run: Wed Sep 08 18:12:58 CDT 2010
Baldwin

Slides
aa  -  ITSE 2317 Java Programming (Intermediate)
ab  -  Panels, Labels, Text Fields, and Buttons
ac  -  Figures
ad  -  Listings
ae  -  Preview
af  -  Preview (cont'd)
ag  -  Program specifications
ah  -  Program output at startup
ai  -  Program output after one click
aj  -  Program output after several clicks
ak  -  Labels, text fields, and buttons
al  -  Labels, text fields, and buttons (cont'd)
am  -  Program termination
an  -  Use AWT components instead of Swing components
ao  -  The class named Prob05
ap  -  The class named Prob05 (cont'd)
aq  -  Will explain in fragments
ar  -  The class named Prob05Runner
as  -  Instantiate GUI components
at  -  GUI component initialization
au  -  Brief descriptions of the GUI components
av  -  Brief descriptions of the GUI components (cont'd)
aw  -  Brief descriptions of the GUI components (cont'd)
ax  -  Brief descriptions of the GUI components (cont'd)
ay  -  The GUI
az  -  The angle and distance variables
ba  -  Beginning of the constructor
bb  -  Set the panel background color to orange
bc  -  Set the layout to GridLayout
bd  -  Overloaded constructors
be  -  Overloaded constructors (cont'd)
bf  -  The order of component placement
bg  -  Add the six GUI components to the panel
bh  -  Add the Panel to the JFrame
bi  -  Get the frame and add the panel to the frame
bj  -  The BorderLayout manager
bk  -  Pack the frame
bl  -  Pack the frame (cont'd)
bm  -  What about the size of the panel?
bn  -  What about the size of the panel (cont'd)?
bo  -  Set the background to blue and add a turtle
bp  -  Could stop at this point
bq  -  The program would be completely passive
br  -  Register listener objects
bs  -  Define, instantiate, and register a listener on the Move button
bt  -  The actionPerformed method
bu  -  The actionPerformed method (cont'd)
bv  -  Action listener to terminate the program
bw  -  Action listener to terminate the program (cont'd)
bx  -  The end of the constructor and the end of the class
by  -  Run the program
bz  -  Summary
ca  -  Complete program listing
cb  -  End of slides
cc  -  Spare slide template

-end-