I want the message box to appear immediately after the user changes the value in the textfield. Currently, I need to hit the enter key to get the message box to pop out. Is
Use a KeyListener (which triggers on any key) rather than the ActionListener (which triggers on enter)