public synchronized void addActionListener (ActionListener l)

Adds the specified action listener to receive action events from this textfield.

Parameters:
l    the action listener to be added