February 2014
Beginner
1248 pages
62h 25m
English
This example should display a message dialog containing the text from a text field when the user presses Enter in that text field. Before an application can respond to an event for a particular GUI component, you must:
1. Create a class that represents the event handler and implements an appropriate interface—known as an event-listener interface.
2. Indicate that an object of the class from Step 1 should be notified when the event occurs—known as registering the event handler.
Read now
Unlock full access