Print this page


Split Close
Expand all
Collapse all
          --- old/src/share/classes/java/awt/event/FocusAdapter.java
          +++ new/src/share/classes/java/awt/event/FocusAdapter.java
↓ open down ↓ 36 lines elided ↑ open up ↑
  37   37   * all, so you can only have to define methods for events you care about.)
  38   38   * <P>
  39   39   * Create a listener object using the extended class and then register it with
  40   40   * a component using the component's <code>addFocusListener</code>
  41   41   * method. When the component gains or loses the keyboard focus,
  42   42   * the relevant method in the listener object is invoked,
  43   43   * and the <code>FocusEvent</code> is passed to it.
  44   44   *
  45   45   * @see FocusEvent
  46   46   * @see FocusListener
  47      - * @see <a href="http://docs.oracle.com/javase/tutorial/uiswing/events/focuslistener.html">Tutorial: Writing a Focus Listener</a>
       47 + * @see <a href="https://docs.oracle.com/javase/tutorial/uiswing/events/focuslistener.html">Tutorial: Writing a Focus Listener</a>
  48   48   *
  49   49   * @author Carl Quinn
  50   50   * @since 1.1
  51   51   */
  52   52  public abstract class FocusAdapter implements FocusListener {
  53   53      /**
  54   54       * Invoked when a component gains the keyboard focus.
  55   55       */
  56   56      public void focusGained(FocusEvent e) {}
  57   57  
  58   58      /**
  59   59       * Invoked when a component loses the keyboard focus.
  60   60       */
  61   61      public void focusLost(FocusEvent e) {}
  62   62  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX