How do you simulate a click on a JTextField? Equivalent of JButton doClick()?

Posted by qwert302 on Stack Overflow See other posts from Stack Overflow or by qwert302
Published on 2010-03-15T04:36:16Z Indexed on 2010/03/15 4:39 UTC
Read the original article Hit count: 263

Filed under:
|
|
|

I am working on a Java project and need to have a keypress simulate a click on a JTextField. What I'm looking for is the equivalent of the JButton doClick() method.

I am trying to have the keypress "enter" perform the exact same function as a click on the JTextField.

Not sure what other info to provide. Thanks in advance.

© Stack Overflow or respective owner

Related posts about java

Related posts about jtextfield