A good answer might be:

You may have forgotten to register a listener with the button. Without a listener, the events a component generates are simply ignored.

A GUI Component: TextField

A TextField is a box that contains text. The user can type text into the box and the program can get it and then use it as data. The program can write the results of a calculation to a TextField. Here a TextField has been added to a Web page:

Enter Some Text:   
The component works correctly, and is displayed correctly, but if you enter text into it, nothing happens. The component has not been connected to any application code. (Actually the above was done with JavaScript, not Java, but the idea is the same.)

QUESTION 2:

(Review: ) Where is the class definition for TextField?

Click Here after you have answered the question