<Swing Dev> [10] RFR JDK-7163851:Swing. Documentation for AbstractButton.setMnemonic(int) describes behavior not correctly
Semyon Sadetsky
semyon.sadetsky at oracle.com
Tue Jul 18 15:13:21 UTC 2017
Hi Prasanta,
1521 * For example, for Windows look and feel, mnemonic will be underlined
1522 * only when ALT key is pressed.
I'm not sure that mentioning Windows L&F in that way is justified. This
behavior may vary. In Windows L&F mnemonics hiding depends on the
"Button.showMnemonics" value which in its turn is determined from the
native desktop settings.
--Semyon
On 07/17/2017 11:18 PM, Prasanta Sadhukhan wrote:
> Hi All,
>
> Please review a doc modification making it clear that mnemonic display
> depends on L&F.
> It seems, the doc in current form, may imply that
> first occurence of the character defined by the mnemonic will be
> underlined "always" but it is not so.
> For windows L&F, it is underlined only when ALT key is pressed.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-7163851
> webrev: http://cr.openjdk.java.net/~psadhukhan/7163851/webrev.00/
>
> Regards
> Prasanta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20170718/d59ebcb4/attachment.html>
More information about the swing-dev
mailing list