<AWT Dev> [8] Review Request: JDK-8024329 [macosx] JRadioButtonMenuItem behaves like a checkbox when using the ScreenMenuBar
Petr Pchelko
petr.pchelko at oracle.com
Fri Oct 11 02:35:32 PDT 2013
Hello, AWT Team.
Please review the new version of the fix:
http://cr.openjdk.java.net/~pchelko/8024329/webrev.01/
This version of the fix does not expose the package-private class com.apple.laf.ScreenMenuItemCheckbox
Instead we override the setState method to no-op and force the setState only when it's really needed.
With best regards. Petr.
On 10.10.2013, at 18:19, Petr Pchelko <petr.pchelko at oracle.com> wrote:
> Hello, AWT Team.
>
> Please review the fix for the issue:
> https://bugs.openjdk.java.net/browse/JDK-8024329
> The fix is available at:
> http://cr.openjdk.java.net/~pchelko/8024329/webrev.00/
>
> The problem: for AWT menu the peer should update the menu item state unconditionally. However for the Swing menu items used in screen menubar swing should decide wether to update the state or not. So we should not unconditionally update the sate.
> There's no regression test as there's no way to understand if the native menu item is checked or not.
>
> With best regards. Petr.
More information about the awt-dev
mailing list