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.

Bug 42236

Summary: I18N - Mnemonic keys on multi-bye chars after t9n
Product: obsolete Reporter: yasuhiro <yasuhiro>
Component: jarpackagerAssignee: issues@obsolete <issues>
Status: RESOLVED WONTFIX    
Severity: blocker CC: jf4jbug
Priority: P3 Keywords: I18N
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description yasuhiro 2004-04-21 09:44:55 UTC
On "JarRecipe - Manifest" window, you can see the
following messages:

- Manifest Text:
- Attributes:

Mnemonic key is set on the each first char.

=== ManifestTab.java
manifestTextLabel.setText(java.util.ResourceBundle.getBundle("org/netbeans/modules/jarpackager/Bundle").getString("CTL_ManifestText"));
manifestTextLabel.setDisplayedMnemonic(manifestTextLabel.getText().charAt(0));

generationLabel.setText(java.util.ResourceBundle.getBundle("org/netbeans/modules/jarpackager/Bundle").getString("CTL_GenerationBorder"));
generationLabel.setDisplayedMnemonic(generationLabel.getText().charAt(0));

But such implementation makes mnemonic keys 
go wrong after translation.
Because the first letter of the translated
message is double-byte char. 

Please add the new messages into the Bundle,
and implement them like follows:

====
manifestTextLabel.setText(org.openide.util.NbBundle.getBundle("org/netbeans/modules/jarpackager/Bundle").getString("CTL_ManifestText"));
manifestTextLabel.setDisplayedMnemonic(org.openide.util.NbBundle.getBundle("org/netbeans/modules/jarpackager/Bundle").getString("CTL_ManifestText_MNE").charAt(0));
Comment 1 Ondrej Rypacek 2004-04-21 10:09:51 UTC
The whole JarPackager module is discontinued. Its functionality will
be provided by the new build-system in the next release.