RFR: 4938801: The popup does not go when the component is removed [v6]

Prasanta Sadhukhan psadhukhan at openjdk.org
Tue Jul 29 12:20:57 UTC 2025


On Tue, 29 Jul 2025 12:01:37 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

> May I be recorded as a contributor / co-author for the test?

Added

> src/java.desktop/share/classes/javax/swing/JPopupMenu.java line 136:
> 
>> 134:                     && isVisible()) {
>> 135:                     setVisible(false);
>> 136:                 }
> 
> Should we hide the popup if invoker changes to another value?

Listener is added only when invoker is changed

-------------

PR Comment: https://git.openjdk.org/jdk/pull/26407#issuecomment-3132210949
PR Review Comment: https://git.openjdk.org/jdk/pull/26407#discussion_r2239616868


More information about the client-libs-dev mailing list