FocusAdapter in Java

0
178
Spread the love
  • 1
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    1
    Share

FocusAdapter in Java
FocusAdapter in Java

FocusAdapter in Java:

FocusAdapter class is an implementation of FocusListener interface containing empty bodies of each methods of the FocusListener interface.
If we do not wish to write every methods of FocusListener interface in our class,FocusAdapter class helps in that aspect.

The structure of FocusAdapter class is defined as:


public abstract class java.awt.event.FocusAdapter extends extends java.lang.Object 
                                                implements java.awt.event.FocusListener{
//constructor
public FocusAdapter();
//methods
public void focusGained(FocusEvent e);
public void focusLost(FocusEvent e);
}
 
Don't miss out!
Subscribe To Newsletter

Receive top technical news, lesson ideas, travel tips and more!

Invalid email address
Give it a try. You can unsubscribe at any time.

Spread the love
  • 1
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    1
    Share

LEAVE A REPLY

Please enter your comment!
Please enter your name here