[patch] Bug #20015 JMenu stays open but should not
Olga Rodimina
rodimina@redhat.com
Mon May 9 18:26:00 GMT 2005
On Mon, 2005-05-09 at 17:19 +0200, Michael Koch wrote:
> On Mon, May 09, 2005 at 10:55:08AM -0400, Olga Rodimina wrote:
> > Hi,
> >
> > Here is the patch that fixes Bug#20015: JMenu stays open but should not
> > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20015
> >
I made the suggested fixes. Here is the updated patch.
Thanks,
Olga.
2005-05-09 Olga Rodimina <rodimina@redhat.com>
* javax/swing/MenuSelectionManager.java
(processMouseEvent): Clear selected path if the mouse
was released over non-menu component.
* javax/swing/plaf/basic/BasicPopupMenuUI.java
(Constructor): Removed initialization of mouseInputListener.
(installListeners): Do not add mouseInputListener to this
popup menu. Instead it will be added to the root container
of the popup menu.
(uninstallListeners): Remove code that removed
mouseInputListener from popupMenu.
(popupMenuWillBecomeInvisible): If this popup menu is the
last menu on the screen, then stop interrupting mouse events
through the glass pane.
(popupMenuWillBecomeVisible): Add mouseInputListener to glass
pane if it was not added before and make glass pane visible
in order to interrupt mouse evevents.
(MouseInputHandler): Close menu hierarchy if the mouse was
clicked on non menu component.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: text/x-patch
Size: 14798 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20050509/7aaaa7db/attachment.bin>
More information about the Java-patches
mailing list