Answer:
When the user presses enter in a jpasswordfield, the gui component generates an ActionEvent, ActionListener, which is processed by an object that implements the interface.
1.6m questions
2.0m answers