title: How do you simulate a click on a JTextField? Equivalent of JButton doClick()?
body: <p>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.</p>
  
  <p>I am trying to have the keypress "enter" perform the exact same function as a click on the JTextField.</p>
  
  <p>Not sure what other info to provide. Thanks in advance.</p>