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 75196

Summary: I18N: error messages from setErrorMsg() are not localized
Product: contrib Reporter: Masaki Katakai <masaki>
Component: JMXAssignee: Jean-francois Denise <jfdenise>
Status: RESOLVED 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-04-19 02:13:18 UTC
Most messages from setErrorMsg() are hardcoded and not from resource bundle.
These error messages are being displayed on footer of Wizard.

./jmx/configwizard/ConfigPanel.java:                setErrorMsg( "The file " +
// NOI18N
./jmx/configwizard/ConfigPanel.java:                setErrorMsg( "The file " +
// NOI18N
./jmx/mbeanwizard/MBeanJUnitTestPanel.java:                setErrorMsg( 
"Specified class does not exist.");// NOI18N
./jmx/mbeanwizard/MBeanJUnitTestPanel.java:                setErrorMsg( 
"Specified class is an Interface.");// NOI18N
./jmx/mbeanwizard/MBeanJUnitTestPanel.java:                setErrorMsg( 
"Specified class is abstract.");// NOI18N
./jmx/mbeanwizard/MBeanJUnitTestPanel.java:                    setErrorMsg( 
"Specified class is not a MBean class.");// NOI18N
./jmx/mbeanwizard/MBeanJUnitTestPanel.java:               
setErrorMsg(bundle.getString("LBL_ClassWithNoConstructor")); // NOI18N
./jmx/mbeanwizard/MBeanOperationPanel.java:        private void
setErrorMsg(String message) {
./jmx/mbeanwizard/MBeanOptionsPanel.java:                setErrorMsg(  "The file
" + // NOI18N
./jmx/mbeanwizard/MBeanOptionsPanel.java:                   
setErrorMsg("Specify a class to wrap.");// NOI18N
./jmx/mbeanwizard/MBeanOptionsPanel.java:                    setErrorMsg(  "The
specified class does not exist.");// NOI18N
./jmx/mbeanwizard/MBeanOptionsPanel.java:                    setErrorMsg(  "The
specified class is an Interface.");// NOI18N
./jmx/mbeanwizard/MBeanOptionsPanel.java:                    setErrorMsg(  "The
specified class is abstract.");// NOI18N
./jmx/mbeanwizard/StandardMBeanPanel.java:                setErrorMsg(  "The
file " + // NOI18N
./jmx/mbeanwizard/StandardMBeanPanel.java:                     setErrorMsg( 
"The specified class does not exist.");// NOI18N
./jmx/mbeanwizard/StandardMBeanPanel.java:                     setErrorMsg( 
"Specify an Existing class.");// NOI18N
Comment 1 Jean-francois Denise 2006-04-21 08:22:02 UTC
OK.
Need to externalize these strings in bundle.