Swing Event Java Tutorial

Defined Methods Description
focusGained(FocusEvent e)Called when a component gains the keyboard focus
focusLost(FocusEvent e)Called when a component loses the keyboard focus