Monday, 19 August 2013

Typing into a JTextField enables a button. Is it wrong to use a KeyListener?

Typing into a JTextField enables a button. Is it wrong to use a KeyListener?

I have a button called "save changes" that will save any changes if any
changes are detected in a JTextField component. For now, I assume if the
user types anything, then the content has changed.
I am using a KeyListener, but from this question it sounds like using
anything other than an ActionListener is wrong?

No comments:

Post a Comment