-
Enhancement
-
Resolution: Fixed
-
P4
-
8, 11, 17, 18, 19
-
b18
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8290929 | 17.0.5-oracle | Dukebot | P4 | Resolved | Fixed | b04 |
JDK-8291682 | 17.0.5 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
JDK-8290958 | 11.0.17-oracle | Dukebot | P4 | Resolved | Fixed | b04 |
JDK-8291681 | 11.0.17 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
JDK-8291155 | 8u361 | Dukebot | P4 | Resolved | Fixed | b01 |
Issue description:
I want JComboBox to send an event just before the popup (drop down) list is
displayed.
Fix:
This requires some additional API targeted for major release of the JDK (1.4).The PopupMenuEvent will from the JPopupMenu will be forwarded to the JComboBox. A client of the JComboBox can register itself as a PopupMenuListener to receive the notification.
So JComboBox should send drop down events when the drop down popup is visible as well as invisible. JComboBox.addPopupMenuListener(PopupMenuListener) can be used to register for pop up events.
Testing:
Tested using Mach5 in all platforms available(macos,linux and windows) and got all pass.
- backported by
-
JDK-8290929 Create a regression test for RFE 4287690
- Resolved
-
JDK-8290958 Create a regression test for RFE 4287690
- Resolved
-
JDK-8291155 Create a regression test for RFE 4287690
- Resolved
-
JDK-8291681 Create a regression test for RFE 4287690
- Resolved
-
JDK-8291682 Create a regression test for RFE 4287690
- Resolved
- relates to
-
JDK-4331058 JComboBox should notify a listener about the state of the popup portion
- Resolved
-
JDK-4287690 JComboBox should send a drop down event
- Resolved
- links to
-
Commit openjdk/jdk11u-dev/1ab3f82e
-
Commit openjdk/jdk17u-dev/64db633e
-
Commit openjdk/jdk/7edd1861
-
Review openjdk/jdk11u-dev/1294
-
Review openjdk/jdk17u-dev/614
-
Review openjdk/jdk/7906