OnJava8-Examples/onjava/MouseClick.java
Bruce Eckel fda0e2dee6 Checkstyle and Findbugs changes
Also changed comment callouts from // (1) to // [1]
2016-11-21 12:37:57 -08:00

20 lines
621 B
Java

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