[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: BasicMenuUI fixlet
From: |
Anthony Balkissoon |
Subject: |
[cp-patches] FYI: BasicMenuUI fixlet |
Date: |
Mon, 11 Jul 2005 15:19:18 -0400 |
This patch makes our JMenu usage more compatible with the reference
implementation. Oddly enough, calls to JMenu.setSelected will allow
more than one menu in a menubar to be selected, so I wrote popupVisible
to make clear the criteria for selecting a menu due to a mouse entered
event.
Removing the check for !menu.isArmed is so that if a menu is selected
but doesn't have its popup menu showing, and then receives a valid mouse
entered event (while another menu is open), it will show its popup menu.
Patch attached.
2005-07-11 Anthony Balkissoon <address@hidden>
* javax/swing/plaf/basic/BasicMenuUI.java:
(MouseHandler.popupVisible): new method.
(MouseHandler.mouseEntered): Removed check for menu being armed to
comply with reference implementation. Calls popupVisible to check
for menus with their popup menu visible
JMenuMouseEnteredFix.diff
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] FYI: BasicMenuUI fixlet,
Anthony Balkissoon <=