infpp.oceanlife
Class OceanGUI.FocusListenerEx

java.lang.Object
  extended by java.awt.event.FocusAdapter
      extended by infpp.oceanlife.OceanGUI.FocusListenerEx
All Implemented Interfaces:
java.awt.event.FocusListener, java.util.EventListener
Enclosing class:
OceanGUI

 class OceanGUI.FocusListenerEx
extends java.awt.event.FocusAdapter

Author:
tdu This class caters for automagically selecting all the text in a text field when the user clicks it or tabs into it. It also unselects everything in it when the user clicks somehere else or tabs out of it.

Constructor Summary
OceanGUI.FocusListenerEx()
           
 
Method Summary
 void focusGained(java.awt.event.FocusEvent e)
           
 void focusLost(java.awt.event.FocusEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OceanGUI.FocusListenerEx

OceanGUI.FocusListenerEx()
Method Detail

focusGained

public void focusGained(java.awt.event.FocusEvent e)
Specified by:
focusGained in interface java.awt.event.FocusListener
Overrides:
focusGained in class java.awt.event.FocusAdapter

focusLost

public void focusLost(java.awt.event.FocusEvent e)
Specified by:
focusLost in interface java.awt.event.FocusListener
Overrides:
focusLost in class java.awt.event.FocusAdapter