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 78205

Summary: Automatic Internationalization does not handle some components
Product: guibuilder Reporter: Masaki Katakai <masaki>
Component: CodeAssignee: issues@guibuilder <issues>
Status: NEW ---    
Severity: blocker CC: jf4jbug, jiriprox
Priority: P3 Keywords: I18N
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Masaki Katakai 2006-06-17 16:41:03 UTC
NB: 5.0 + "Matisse Update Pack for NetBeans 5.0"
OS: all

Matisse Update Pack: Automatic Internationalization does not handle
some components

It seems that "Automatic Internationalization" feature does not pick
up from
	- mnemonic
	- list model
	- table model
	- combobox model

I tried, but these are still hardcoded.

        jButton1.setMnemonic('j');

        jList1.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };

        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] {
"Item 1", "Item 2", "Item 3", "Item 4" }));

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
Comment 1 Jana Maleckova 2006-07-31 11:53:44 UTC
version changed from dev to 5.0
Comment 2 Tomas Pavek 2006-08-11 15:26:46 UTC
Mnemonics are yet to be completed... Best would be to have them defined as part
of the text, but that's a NB specific feature.

The string arrays would be nice, but not easy to implement ... and their
internationalization has not been supported so far. So I'm rather sceptical
about this.
Comment 3 Tomas Pavek 2007-07-17 09:32:41 UTC
This is rather a missing feature than defect.