OnJava8-Examples/onjava/MouseClick.java
2020-10-07 13:35:40 -06:00

20 lines
621 B
Java

// onjava/MouseClick.java
// (c)2020 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
// Helper interface to allow lambda expressions
package onjava;
import java.awt.event.*;
// Default everything except mouseClicked():
public interface MouseClick extends MouseListener {
@Override
default void mouseEntered(MouseEvent e) {}
@Override
default void mouseExited(MouseEvent e) {}
@Override
default void mousePressed(MouseEvent e) {}
@Override
default void mouseReleased(MouseEvent e) {}
}