Class RequestFocusListener

  • All Implemented Interfaces:
    java.awt.event.WindowFocusListener, java.util.EventListener

    public class RequestFocusListener
    extends java.lang.Object
    implements java.awt.event.WindowFocusListener
    The class RequestFocusListener can take a JComponent which will gain focus when the window/frame/dialog will show.

    The listener interface for receiving requestFocus events. The class that is interested in processing a requestFocus event implements this interface, and the object created with that class is registered with a component using the component's addRequestFocusListener method. When the requestFocus event occurs, that object's appropriate method is invoked.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void windowGainedFocus​(java.awt.event.WindowEvent e)
      void windowLostFocus​(java.awt.event.WindowEvent e)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RequestFocusListener

        public RequestFocusListener()
    • Method Detail

      • windowGainedFocus

        public void windowGainedFocus​(java.awt.event.WindowEvent e)
        Specified by:
        windowGainedFocus in interface java.awt.event.WindowFocusListener
      • windowLostFocus

        public void windowLostFocus​(java.awt.event.WindowEvent e)
        Specified by:
        windowLostFocus in interface java.awt.event.WindowFocusListener