Re: focusLost vs. actionPerformed



Richard F.L.R.Snashall wrote:

I have a number of JTextField components that allow user entry.
I have set up both an ActionListener and a FocusListener so that,
for either actionPerformed or focusLost, the value is examined
for validity. [...]

I provide an open source Java library for validation.
There's a Validation Demo that demonstrates a bunch of
problems, concepts and solutions for Swing validations
and validation presentations.

The JGoodies Validation project is here:
https://validation.dev.java.net

The JGoodies Validation Demo is here:
http://www.jgoodies.com/freeware/validationdemo/index.html

-Karsten
.