com.wordpress.tipsforjava.swing
[Java] Class RequestFocusListener
java.lang.Object
com.wordpress.tipsforjava.swing.RequestFocusListener
- All Implemented Interfaces:
- AncestorListener
public class RequestFocusListener
extends Object
Convenience class to request focus on a component.
When the component is added to a realized Window then component will
request focus immediately, since the ancestorAdded event is fired
immediately.
When the component is added to a non realized Window, then the focus
request will be made once the window is realized, since the
ancestorAdded event will not be fired until then.
- Authors:
- Rob Camick
- Darryl Burke
RequestFocusListener
RequestFocusListener()
-
ancestorAdded
public void ancestorAdded(AncestorEvent e)
-
ancestorMoved
public void ancestorMoved(AncestorEvent e)
-
ancestorRemoved
public void ancestorRemoved(AncestorEvent e)
-
Groovy Documentation