On Tue, 29 Jul 2025 12:16:22 GMT, Prasanta Sadhukhan <psadhuk...@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

Reply via email to