JTextField fires an ActionEvent every time the user presses Enter. This is by default (and by design). If you register an ActionListener you can receive that event.
JTextArea is different, normally...