Hour 15. Responding to User Input

What You’ll Learn in This Hour:

• Making your programs aware of events

• Setting up a component so it can cause events

• Ignoring some components

• Finding out where events end up in a program

• Storing information in the interface

• Converting values stored in text fields

The graphical user interface (GUI) you developed during the past two hours can run on its own. Users can click buttons, fill text fields with text, and resize the window. Sooner or later, even the least discriminating user is going to be left wanting more. The GUI that a program offers has to cause things to happen when a mouse-click or keyboard entry occurs.

These things become possible when your Java program can respond to user events, which is called event handling, the activity you learn about during this hour.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.15.129.90