[patch] Bug #20015 JMenu stays open but should not
Olga Rodimina
rodimina@redhat.com
Mon May 9 14:55:00 GMT 2005
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
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.
* 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: 15773 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20050509/d2b0b7cf/attachment.bin>
More information about the Java-patches
mailing list