Sven pointed out a bug, it was not possible to receive mouse motion events on a component, that does not have a MouseListener installed. Here comes to fix.
2005-11-17 Roman Kennke <[EMAIL PROTECTED]> * java/awt/Container.java (findComponentForMouseEventAt): Also check for mouseMotionListeners, otherwise we wouldn't dispatch mouse motion events on components that have no mouse listener installed. /Roman
Index: java/awt/Container.java =================================================================== RCS file: /cvsroot/classpath/classpath/java/awt/Container.java,v retrieving revision 1.69 diff -u -r1.69 Container.java --- java/awt/Container.java 17 Nov 2005 21:00:53 -0000 1.69 +++ java/awt/Container.java 18 Nov 2005 21:28:46 -0000 @@ -1094,7 +1094,7 @@ { if (!contains(x, y)) return null; - + for (int i = 0; i < ncomponents; ++i) { // Ignore invisible children... @@ -1117,7 +1117,8 @@ } //don't return transparent components with no MouseListeners - if (this.getMouseListeners().length == 0) + if (getMouseListeners().length == 0 + && getMouseMotionListeners().length == 0) return null; return this; }
_______________________________________________ Classpath-patches mailing list Classpath-patches@gnu.org http://lists.gnu.org/mailman/listinfo/classpath-patches