package abbot.tester; import java.awt.*; import javax.swing.*; import javax.swing.text.*; import abbot.Log; import abbot.i18n.Strings; import javax.swing.text.DefaultEditorKit; /** Provides actions and assertions {@link JTextField}-based * components. */ public class JTextFieldTester extends JTextComponentTester { /** * Enter and commit the given text. */ public void actionCommitText(Component c, String text) { actionEnterText(c, text); actionCommit(c); } /** Cause the text field's notify action to be triggered. */ public void actionCommit(Component c) { actionActionMap(c, JTextField.notifyAction); } }