home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / JTextField$NotifyAction.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  585 b   |  21 lines

  1. package javax.swing;
  2.  
  3. import java.awt.event.ActionEvent;
  4. import javax.swing.text.JTextComponent;
  5. import javax.swing.text.TextAction;
  6.  
  7. class JTextField$NotifyAction extends TextAction {
  8.    JTextField$NotifyAction() {
  9.       super("notify-field-accept");
  10.    }
  11.  
  12.    public void actionPerformed(ActionEvent var1) {
  13.       JTextComponent var2 = ((TextAction)this).getFocusedComponent();
  14.       if (var2 instanceof JTextField) {
  15.          JTextField var3 = (JTextField)var2;
  16.          var3.postActionEvent();
  17.       }
  18.  
  19.    }
  20. }
  21.