This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
It seems that the mnemonic key is always set as the 1st character for "Activate" button. ide.ergonomics/src/org/netbeans/modules/ide/ergonomics/fod/ConfigurationPanel.java: downloadButton.setText(btnMsg); downloadButton.setMnemonic(btnMsg.charAt(0)); It will not be valid when the label is localized. Please use '&' and org.openide.awt.Mnemonics.setLocalizedText() to set mnemonic like org/netbeans/modules/ide/ergonomics/fod/Bundle.properties: +LBL_Download=&Download and Install +LBL_Enable=&Activate org/netbeans/modules/ide/ergonomics/fod/ConfigurationPanel.java: + org.openide.awt.Mnemonics.setLocalizedText(infoLabel, lblMsg); + org.openide.awt.Mnemonics.setLocalizedText(downloadButton, btnMsg);
Created attachment 76699 [details] proposed patch, could you evaluate?
Note that according to the latest UI spec the Activate button should be removed...
I will apply the patch for the time being. Bear in mind that Activate button will be perhaps removed, as Tomas noted. Thanks for the patch.
Thanks for the patch. Applied. 5eed8ddb3276
Integrated into 'main-golden', will be available in build *200903040201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/5eed8ddb3276 User: Pavel Flaska <pflaska@netbeans.org> Log: #158135: Mnemonic. Applied Masaki's patch.