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 65474

Summary: I18N - some seeded labels of components not localizable
Product: guibuilder Reporter: Ken Frank <kfrank>
Component: CodeAssignee: issues@guibuilder <issues>
Status: VERIFIED INVALID    
Severity: blocker CC: jf4jbug, mgrummich
Priority: P2 Keywords: I18N
Version: 5.x   
Hardware: Sun   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Ken Frank 2005-09-30 04:57:53 UTC
when dropping some components on design, they are seeded with a label
like jbal1, jTextField, etc etc but these are not from bundle file -
I realize in code these become names of the new component they are - but
since they are also indicating the type of component, could they be from
bundle file. the component name can be multibyte since these would be 
localized, but also, the component programattic name could still be en,
but just what is seen in design could be localized.

Some are, like list item names seeded into list on design pane.

In creator design, these seeded values all come from bundle files.
Comment 1 Ken Frank 2005-09-30 05:05:22 UTC
jTree has words colors, sports, food as seeded in design pane - this not
from localized either -- although maybe all these are from jdk swing itself
and not part of the jdk that is localized ?

ken.frank@sun.com
Comment 2 Jan Stola 2005-09-30 09:27:59 UTC
The text property of buttons, labels, textfields etc. is set to the variable
name of the component. This allows the user to identify the components
in the designer easily. It doesn't have a sense to localize these text.
It doesn't bring any additional value and is confusing instead. It is even
not possible becuase the user can install its own components - you cannot have
bundle keys for such components and if you had only keys for Swing
components from JDK then it would be inconsistent and confusing.

> jTree has words colors, sports, food as seeded in design pane - this not
> from localized either -- although maybe all these are from jdk swing itself
> and not part of the jdk that is localized ?

It has been already explained in issue 60408:

* the words shown in a JTree are hardcoded in the default constructor
  of the JTree itself e.g. are hardcoded in the JDK itself. That's
  not very nice, but we should show these values because they are
  part of the default state of this component.
Comment 3 Marek Grummich 2006-01-26 10:15:57 UTC
.