FocusEvent of a JTextField object

Hi,

I'm new to event handling in Java GUI development, and I'm just wondering how I can achieve the following effect in my GUI:

Say I have a text field, and and I input some value (e.g. 3), and when I move the cursor away from this field, how can I retrieve this value 3 from it?

I understand you could use ActionEvent to obtain the text inside the field when you press 'Enter', but this is not what I intend to do.

Many thanks.

[464 byte] By [cyaevana] at [2007-11-26 16:54:29]
# 1
Add a MouseListener to the method and retrieve the value in the mouseExited() method.
CaptainMorgan08a at 2007-7-8 23:22:08 > top of Java-index,Security,Event Handling...