How do I fire an action when the user leaves a JTextBox?
I've got a JTextField, and I'd like the system to do some processing on what the user typed whenever the user leaves the text field. The ActionListener that you can add to just the JTextField only fires when the user presses enter, however.

I'd like the processing routine to run whenever the user leaves the text box by any means - tabs, clicks out of it, presses enter, etc.

My google-fu has failed on this one: I'm confident that it's possible, I just can't see how.
How do I fire an action when the user leaves a JTextBox?
===

I've got a JTextField, and I'd like the system to do some processing on what the user typed whenever the user leaves the text field. The ActionListener that you can add to just the JTextField only fires when the user presses enter, however.

I'd like the processing routine to run whenever the user leaves the text box by any means - tabs, clicks out of it, presses enter, etc.

My google-fu has failed on this one: I'm confident that it's possible, I just can't see how.