JTextField and JButton: share the same event handler
Mousa A. Rafi
Joined: Jan 30, 2005
I've a JFrame that has a JTextField and a JButton object. After typing something in the Textfield I want the JButton to be clicked when I hit Enter. How can I do it? Does it have something to do with Actions?