FocusListener Interface:
This interface declares two methods, whenever a component acquires keyboard focus, focusGained( ) is invoked. Whenever a component loses keyboard focus, focusLost( ) is called. Their common forms are display here:
Syntax : Void focusGained (FacusEvent fe)
Syntax : Void foucusLost(FocusEvent fe)