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);
}
 

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here