<Swing Dev> RFR: 8048109: JToggleButton does not fire actionPerformed under certain conditions [v4]
Tejpal Rebari
trebari at openjdk.java.net
Mon Dec 21 12:20:55 UTC 2020
On Fri, 18 Dec 2020 21:43:24 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
>> Before the fix the mouse event that cause the popup to close was consumed here as the "PopupMenu.consumeEventOnClose" was true.
>>
>> After the fix the mouse event that cause the popup to close will not be consumed here as "PopupMenu.consumeEventOnClose" is set to false in the fix for Windows, GTK, Nimbus and Motif LAF.
>
> And does it match the native behavior? I mean different values of "consumeEventOnClose" weren't a bug. It was intentionally set to the appropriate value.
yeah , i have checked in windows and ubuntu native apps and it is matching native behaviour.
The issue is seen in Motif, Nimbus, GTK and windows which sets consumeEventOnClose to true.
It is not seen in Metal And Aqua which doesn't set this variable and the value from BasicLookAndFeel.java is used which is false.
-------------
PR: https://git.openjdk.java.net/jdk/pull/600
More information about the swing-dev
mailing list