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

Tejpal Rebari trebari at openjdk.java.net
Wed Jan 6 05:51:00 UTC 2021


On Wed, 23 Dec 2020 23:47:29 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

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

Open menu and click some menu item, will the jbutton be clicked?
    No, the JButton is not clicked in this use case.

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

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


More information about the swing-dev mailing list