![java - Swing won't trigger mouseEntered/mouseExited properly after mouse wheel events? - Stack Overflow java - Swing won't trigger mouseEntered/mouseExited properly after mouse wheel events? - Stack Overflow](http://perp.se/so/1.png)
java - Swing won't trigger mouseEntered/mouseExited properly after mouse wheel events? - Stack Overflow
![How to Write a Mouse Listener (The Java™ Tutorials > Creating a GUI With Swing > Writing Event Listeners) How to Write a Mouse Listener (The Java™ Tutorials > Creating a GUI With Swing > Writing Event Listeners)](https://docs.oracle.com/javase/tutorial/figures/uiswing/events/MouseEventDemo.png)
How to Write a Mouse Listener (The Java™ Tutorials > Creating a GUI With Swing > Writing Event Listeners)
Uses a subclass of MouseInputAdapter to listen to mouse events and mouse-motion events : Mouse Event « Swing Event « Java Tutorial
![How to Write a Mouse Listener (The Java™ Tutorials > Creating a GUI with JFC/Swing > Writing Event Listeners) How to Write a Mouse Listener (The Java™ Tutorials > Creating a GUI with JFC/Swing > Writing Event Listeners)](https://www.cs.auckland.ac.nz/references/java/java1.5/tutorial/figures/uiswing/events/MouseEventDemo.png)