RFR: 4938801: The popup does not go when the component is removed [v6]
Alexey Ivanov
aivanov at openjdk.org
Tue Jul 29 12:20:58 UTC 2025
On Tue, 29 Jul 2025 12:16:22 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> 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
Yes, but we hide the popup only when `invoker` is changed to `null`. Should we hide the popup whenever `invoker` is changed to a different value?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26407#discussion_r2239623745
More information about the client-libs-dev
mailing list