JDK-8283507 : Create a regression test for RFE 4287690
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8,11,17,18,19
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2022-03-22
  • Updated: 2022-08-01
  • Resolved: 2022-04-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 17 JDK 19 JDK 8
11.0.17-oracleFixed 17.0.5-oracleFixed 19 b18Fixed 8u361Fixed
Related Reports
Relates :  
Relates :  
Description
Create a regression test for JDK-4287690
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.
Comments
A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/1294 Date: 2022-07-31 13:09:53 +0000
01-08-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/614 Date: 2022-07-31 13:05:26 +0000
01-08-2022

Fix request [11u,17u] I backport this for parity with 11.0.17/17.0.5-oracle. No risk, only a test change. Clean backport. Test passes.
31-07-2022

Changeset: 7edd1861 Author: Manukumar V S <mvs@openjdk.org> Committer: Alexey Ivanov <aivanov@openjdk.org> Date: 2022-04-11 14:00:46 +0000 URL: https://git.openjdk.java.net/jdk/commit/7edd18612155b8e66f214a17e65ef775b470955e
11-04-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/7906 Date: 2022-03-22 15:48:39 +0000
22-03-2022