I wonder if there is any way to avoid unnecessary methods from implemented interface or other class.
Let say that I have simple class implementing  MouseListener, when actually I need only one method mousePressed( MouseEvent e) to override. However, in that case I also have to override every other method from interface but keep them empty like that:
public void mouseExited( MouseEvent e) {}
public void mouseClicked( MouseEvent e) {}
public void mouseReleased( MouseEvent e) {}
public void mouseEntered( MouseEvent e) {}
Is there any tricky solution to override only method I really need even when the others are abstract in interface/superclass and still keep my class as non-abstract?