[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] Patch for approval: JMenu setSelected behavior (bug 13683)
From: |
Anthony Balkissoon |
Subject: |
[cp-patches] Patch for approval: JMenu setSelected behavior (bug 13683) |
Date: |
Mon, 11 Jul 2005 13:16:22 -0400 |
This patch is in reference to bug report 13683, JMenu setSelected
behavior. Direct calls to setSelected no longer expand the popupMenu,
although mouse events still do.
This also allows direct calls to setSelected to select the menu even
while it is disabled (as in the JDK), however it is not properly painted
yet. Once I look into that I will close the bug report.
This patch is pending approval.
Patch attached.
2005-07-11 Anthony Balkissoon <address@hidden>
* javax/swing/JMenu.java:
(setSelectedHelper): new method.
(setSelected): Code moved to setSelectedHelper. Calls
setSelectedHelper(selected,true,false) which doesn't expand the popup
menu and works whether the menu is enabled or not.
(menuSelectionChanged): Changed call to setSelected(changed) to
setSelectedHelper(changed,isEnabled(),true) which does expand the
popup menu, but only if the menu is enabled.
-Tony
JMenuSetSelected.diff
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] Patch for approval: JMenu setSelected behavior (bug 13683),
Anthony Balkissoon <=