Professional Documents
Culture Documents
AWTAccumulator
AWTAccumulator
tfInput.addActionListener(new TFInputListener());
// "tfInput" is the source object that fires an ActionEvent upon entered.
// The source add an anonymous instance of TFInputListener as an
ActionEvent
// listener, which provides an ActionEvent handler called
actionPerformed().
// Hitting "enter" on tfInput invokes actionPerformed().