Java Reference
In-Depth Information
DAY 12:
Responding to User
Input
To make a graphical user interface completely functional in a Java pro-
gram, you must make the interface receptive to user events.
Swing handles events with a set of interfaces called event listeners . You
create a listener object and associate it with the user interface compo-
nent being monitored.
Today, you learn how to add listeners of all kinds to your Swing programs,
including those that handle action events, mouse events, and other inter-
action.
When you're finished, you create a full Java application using the Swing
set of classes.
 
Search WWH ::




Custom Search