swpchat.client.gui
Class TextFieldFocusListener

java.lang.Object
  |
  +--swpchat.client.gui.TextFieldFocusListener
All Implemented Interfaces:
java.util.EventListener, java.awt.event.FocusListener

public class TextFieldFocusListener
extends java.lang.Object
implements java.awt.event.FocusListener

Listener which should be added to TextFields. It selects the text in the TextField if the TextField gains the focus. Can be used with TextFields and JTextFields.

Since:
24.01.2000
Author:
msturm

Constructor Summary
TextFieldFocusListener()
           
 
Method Summary
 void focusGained(java.awt.event.FocusEvent event)
          Invoked if the TextField gains the focus.
 void focusLost(java.awt.event.FocusEvent event)
          Invoked if the TextField lost the focus.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

TextFieldFocusListener

public TextFieldFocusListener()
Method Detail

focusGained

public void focusGained(java.awt.event.FocusEvent event)
Invoked if the TextField gains the focus.
Specified by:
focusGained in interface java.awt.event.FocusListener

focusLost

public void focusLost(java.awt.event.FocusEvent event)
Invoked if the TextField lost the focus.
Specified by:
focusLost in interface java.awt.event.FocusListener