Knowledge Goals
- To understand the relationship of a JFrameto its content pane and the
objects it contains - To understand the Java event-handling model
- To learn the different parts of an event loop
- To understand how an event handler can receive events from multiple sources
Skill Goals
To be able to:
- Construct a code segment that creates a JFramewindow on the screen
- Use a JLabelobject to display a message in a JFrameon the screen
- Use a layout manager to organize labels in a window
- Write an event handler for a single button
- Register an event handler with a button
- Write an event loop using a button
- Use a JTextFieldto input a value
- Group user interface objects together with a JPanel
- Write an event handler that distinguishes among multiple event sources
Event-Driven Input
and Output
1968
A NATO Science
Committee
introduces the term
“software
engineering”
1968
Edsger Dijkstra
advocates for
reliable software
with a letter citing
the weaknesses of
the Go To statement
1968
Integrated circuits
debut in computers
1968
The Federal
Information
Processing Standard
promotes the
YYMMDD standard
for the date, setting
the stage for the
Y2K problem
1968
Intel Corporation is
established by
Robert Noyce, Andy
Grove, and Gordon
Moore
1969
ARPANET, the
precursor to the
Internet, is
commissioned by
the US Department
of Defense