<Swing Dev> RFR: 8048109: JToggleButton does not fire actionPerformed under certain conditions [v4]

Sergey Bylokhov serb at openjdk.java.net
Wed Dec 23 23:49:57 UTC 2020


On Mon, 21 Dec 2020 12:18:19 GMT, Tejpal Rebari <trebari at openjdk.org> wrote:

>> 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.

Can you recheck that using the next usecase:
 - Create menu in the frame
 - Add jbutton to the frame exactly in the place where the menu popup is opened
 - Open menu and click some menu item, will the jbutton be clicked?

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

PR: https://git.openjdk.java.net/jdk/pull/600


More information about the swing-dev mailing list