MouseAdapter class in java

0
84
Spread the love
  • 10
  • 12
  • 15
  • 18
  •  
  •  
  •  
  •  
  •  
  •  
    55
    Shares

MouseAdapter class in java
MouseAdapter class in java

MouseAdapter class:

This class is an implementation of MouseListener interface.It contains empty bodies for each of the methods of the MouseListener interface.When we do not need to implement all methods of MouseListener interface , subclass of MouseAdapter helps .

The structure of MouseAdapter:


public abstract class java.awt.event.MouseAdapter extends java.lang.Object
                implements java.awt.event.MouseListener{
//constructors
public MouseAdapter();
//methods
public void mouseClicked(MouseEvent e);
public void mouseEntered(MouseEvent e);
public void mouseExited(MouseEvent e);
public void mousePressed(MouseEvent e);
public void mouseReleased(MouseEvent 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
  • 10
  • 12
  • 15
  • 18
  •  
  •  
  •  
  •  
  •  
  •  
    55
    Shares

LEAVE A REPLY

Please enter your comment!
Please enter your name here