Search:

Type: Posts; User: copeg

Search: Search took 0.36 seconds.

  1. Re: addActionListeners() not recognized ENTER key event for a JTextField

    Not an SSCCE....where is the addActionListeners method defined? Are you required to use the class ConsoleProgram (it is a 3rd party library, and IMO for beginners it defeats the process of learning...
  2. Re: addActionListeners() not recognized ENTER key event for a JTextField

    Short, Self Contained, Correct Example - see the link in my signature, or just google the acronym.



    You call a method addActionListeners(), and did not post the code. We can only guess what...
  3. Re: addActionListeners() not recognized ENTER key event for a JTextField

    Post an SSCCE that demonstrates the behavior. And make sure you have added the ActionListener to the JTextField.
  4. Re: addActionListeners() not recognized ENTER key event for a JTextField

    Assuming you've added the ActionListener to the JTextField, the JTextField must have focus to fire the event. Focus occurs when you type inside, or by calling requestFocus
Results 1 to 4 of 4