[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cp-patches] Patch for BasicInternalFrameUI fixes #23966
From: |
Anthony Balkissoon |
Subject: |
Re: [cp-patches] Patch for BasicInternalFrameUI fixes #23966 |
Date: |
Mon, 19 Sep 2005 14:35:39 -0400 |
Made a slight change to this, just a null pointer check before
comparison. Patch is attached.
2005-09-19 Anthony Balkissoon <address@hidden>
* javax/swing/plaf/basic/BasicInternalFrameUI.java:
(GlassPaneDispatcher.handleEvent): Added check for mouseEventTarget
being null to avoid NPE.
--Tony
On Mon, 2005-09-19 at 13:30 -0400, Anthony Balkissoon wrote:
> BasicInternalFrameUI$GlassPaneDispatcher.handleEvent was re-dispatching
> events to itself causing an infinite loop. This patch fixes the
> problem. Patch is attached.
>
> 2005-09-19 Anthony Balkissoon <address@hidden>
>
> * javax/swing/plaf/basic/BasicInternalFrameUI.java:
> (GlassPaneDispatcher.handleEvent): Replaced call to SwingUtilities'
> convertMouseEvent (with identical source and desination) with a simple
> cast. If acquireComponentForMouseEvent reveals we're going to
> re-dispatch this event to ourselves (and loop infinitely), return. Also
> replaced contentPane by glassPane as the source argument to
> SwingUtilities.convertMouseEvent since the glassPane is the real
> source.
>
> --Tony
> _______________________________________________
> Classpath-patches mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/classpath-patches
JInternalFrameGlassPaneInfiniteDispatchFix.diff
Description: Text Data