Programming the Enter key to function as mouse click.
posted 5 months ago
Am just new in a Java class. Am try to solve an assignment. I have two JTextFields, textFieldA and textFieldB with on JButton buttonA. A lick on the button controls the action of entries on the field. How do I program the ENTER key to do same thing on the textfields as a mouse click on the button. Thanks