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 93715 - Inconsistent display name for components
Summary: Inconsistent display name for components
Status: NEW
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: _ sandipchitale
Depends on:
Reported: 2007-01-31 21:07 UTC by bugbridge
Modified: 2007-10-22 18:28 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description bugbridge 2007-01-31 21:07:40 UTC
Original status: 5-Cause Known; Suggested Status: NEW

Original submitter: syz

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.

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.
Comment 1 Jayashri Visvanathan 2007-06-05 00:17:59 UTC
 Does this bug still apply ? 
Comment 2 Lark Fitzgerald 2007-07-13 21:48:27 UTC
Yes, this is still valid in build 200707130000.
Comment 3 Winston Prakash 2007-09-11 01:14:11 UTC
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.

Comment 4 _ sandipchitale 2007-09-23 19:14:17 UTC
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.
Comment 5 Winston Prakash 2007-09-24 15:56:49 UTC
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 ...  
Comment 6 _ sandipchitale 2007-10-22 18:28:15 UTC
Marking this as an enhancement.

This is how it has always worked.