Hi,Haining: if you check the API of component class,you will find the addActionListener,because the TextField is a subclass of the component right!so the TextField do not override the addActionListener method.This action will response to the enter key! Hope this will help you!
Originally posted by Haining Mu: [B] Answer: A,C Why C is correct? In API there is no addActionListener method for TextArea. Anybody explain please. If it can, how ?[/B]