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.
Original status: 5-Cause Known; Suggested Status: NEW Original submitter: syz Description: netbeans 0824, creator pack 0828_2 The style editor dialog's title is not consistent. For some of components, such as hyperlink, label, button, it is <componentId>:<ComponnetName> - style. For example, hyperlink1:Hyperlink - Style For other components, such as dropdown, checkbox, textfield. It is <componentId> - style. This is what Leopard has. This cause automation tests fail. Evaluation: This is not a style editor bug. But how the display name is computed. If you look at the outline, you would see the same display name in the nodes corresponding to the component.
Sherry, Does this bug still apply ? Thanks
Yes, this is still valid in build 200707130000.
Assigning this to insync. This is because of the way the display name of a component is computed at designtime. For components which does not have a "text" property, the display name is simply the component id. But if the component name has text property then the display name is "componentid:<text>". Not sure why this convention is used in insync.
Insync tries to display the default property's value if it is non null. The default property in case of components like Checkbox is "value" property. It may be that the default property should be "label" property to get a effect similar to Hyperlink. Assigning back to components.
Sandip, why I assigned this to insync is to remove the appending of such values (in this case default property's value) to the display name. I don't know who came with that idea, but it looks ugly at several places (example binding dialog etc). Default property value is used for proper binding in case of drag and drop (where user does not explicitly set the property for binding), so it can not be changed. If explicit display name is available from beaninfo, use only that value, else use the id as the display name. This is what I see in other IDE's. "text" is the default property for Static Text. Its value can be "</b> <font some text value" In the binding dialog it displays as statictext1:<b><font>some text value ...
Marking this as an enhancement. This is how it has always worked.