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 72799

Summary: I18N: hardcoded mnemonic keys for "New..","Edit.." and "Delete" buttons
Product: serverplugins Reporter: Masaki Katakai <masaki>
Component: Sun Appserver 8Assignee: _ pcw <pcw>
Status: VERIFIED FIXED    
Severity: blocker CC: jf4jbug, mgrummich
Priority: P3 Keywords: I18N
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Masaki Katakai 2006-02-18 07:36:41 UTC
Mnemonic keys are hardcoded for "New...", "Edit.." and "Delete" button.
Check "BeanTablePanel.java" in 
/serverplugins/sun/sunddui/src/org/netbeans/modules/j2ee/sun/share/configbean/customizers/common.
"w", "e", "l" should be exported to resource bundle.

addButton.setText(bundle.getString("LBL_New")); //NOI18N
int index = bundle.getString("LBL_New").indexOf('w');  //NOI18N
if(index < 0) index = 0;
addButton.setDisplayedMnemonicIndex(index);
                
editButton.setText(bundle.getString("LBL_Edit")); //NOI18N
index = bundle.getString("LBL_Edit").indexOf('e');  //NOI18N
if(index < 0) index = 0;
editButton.setDisplayedMnemonicIndex(index);

removeButton.setText(bundle.getString("LBL_Delete")); //NOI18N
index = bundle.getString("LBL_Delete").indexOf('l');  //NOI18N
if(index < 0) index = 0;
removeButton.setDisplayedMnemonicIndex(index);
Comment 1 _ pcw 2006-08-05 02:26:09 UTC
Fixed.
Comment 2 Pavel Rehak 2006-08-23 13:22:51 UTC
Verified, works just fine with 5.5