I’m trying to determine if this is a known issue.
I’ve created a java.awt.Canvas and I’ve put it into a Frame. It’s being initialized with Display.setParent.
I’ve been trying to add a MouseListener to this canvas so that I can trap the mouseEnter and mouseExit events. It works on Mac OS X and Linux but I cannot get it to work on:
- Windows XP 2002 running Java 1.6.0_20
- Windows 7 running Java 1.6.0_25
I’ve also tried attaching the listener to the Frame and to a Panel containing the Canvas but no luck.
For a reproducer turn on the Java Console and try the webstart app:
http://www.java-gaming.org/index.php/topic,24487.0.html
If the listener is working you should see “cursor entered/exited lwjgl canvas” on stdout whenever you enter/exit the canvas.