This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix to java.awt.Container$LightweightDispatcher


On Mon, 2004-01-19 at 13:53, David Jee wrote:
> Here is a patch that fixes a couple things in the helper class
> LightweightDispatcher in java.awt.Container.  It adds an extra check to
> avoid dispatching a MOUSE_ENTERED event twice, and it translates the
> mouse event's (x,y) location for the event target.
> 
> -David Jee
> 
> 
> 2004-01-19  David Jee  <djee@redhat.com>
> 
>         * java/awt/Container.java
>         (LightweightDispatcher.handleEvent): Add an extra check to avoid
>         dispatching MOUSE_ENTERED event twice. Translate the point for
>         the mouse event target before dispatching the event.
> 
> 


> +        // Avoid dispatching a ENTERED or EXITED event twice

The comment should only mention ENTERED, right?  Once that's fixed this
can go in.

Thanks,
Tom



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]