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 198428 - Manually added properties in swing GUI forms cannot be used in the gui builder.
Summary: Manually added properties in swing GUI forms cannot be used in the gui builder.
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Binding (show other bugs)
Version: 7.0
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-08 11:20 UTC by remould
Modified: 2011-05-08 11:20 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description remould 2011-05-08 11:20:48 UTC
Product Version = NetBeans IDE 7.0 (Build 201104080000)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.6.0_25
Runtime = Java HotSpot(TM) 64-Bit Server VM 20.0-b11

Properties which are added manually to the swing GUI forms should be able to use in the gui builder. Specially when setting properties of ui components. Currently only properties which are directly added to the form can be used for assigning property values in other ui components.

Steps
--------
1. Create a new class called "Counter" and add a bean property called "counter" of type integer.
2. Open a new JFrame form.
3. Create an instance variable called "counter" manually, which refers to the above created class and add the getter and setter correctly.
4. Add a new JLabel to the form.
5. Select the new label and in the properties window, open the property editor dialog box to edit the text of the label.
6. From the drop down menu select "Value From Existing Component"  and select "Property" radio button.
7. Click on (...) button and check the items in the drop down menu. The "counter" variable is not displayed.

If the counter property is added to the form rather than adding it manually, then it will show up. This can be done by using a custom code in which case it will not be flexible. This limitation exists in the Bind Dialog box as well. In the Bind Dialog box, only properties added to the form are displayed in "Binding Source" field.