OnJava8-Examples/onjava/MouseClick.java
Bruce Eckel ede3954d86 March 2021 Book Update
See notes in "Foreword to the Leanpub Edition"
2021-03-04 16:15:04 -07:00

20 lines
622 B
Java

// onjava/MouseClick.java
// (c)2021 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) {}
}