JTextField and JButton: share the same event handler
Mousa A. Rafi
posted 10 years ago
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?