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 117127 - [60cat] Form editor only recognizes beans in the class which it manages the instance and would be useful to be able to use them all
Summary: [60cat] Form editor only recognizes beans in the class which it manages the i...
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker with 1 vote (vote)
Assignee: issues@guibuilder
Depends on:
Reported: 2007-09-29 22:52 UTC by _ wadechandler
Modified: 2008-05-05 16:08 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 _ wadechandler 2007-09-29 22:52:38 UTC
[ BUILD # : 20070928 ]
[ JDK VERSION : 1.6.0_02 ]

The form editor can only see beans in the form for which it manages
the instance. If the user were to add instances of beans to the class
from the Java editor then the form editor should use those as well.
This would make it easier to use beans when the user added the
instance in the Java editor versus the form editor. These would not
end up showing under the hierarchy like the form editor added
instances of visual components, but would instead show up in the
"Other Components" of the inspector/hierarchy. This would then allow
them to be used in other places such as bean binding and to set the
properties of them in initComponents. 

One problem might be the user is setting properties in other
locations, but should not really matter as the user can do this for
form editor managed instances. If the instance is removed from the
Java file then I believe there are events which can be listened to in
which the form editor could remove the logic from initComponents and
events for the instance, or those methods could be left alone...which
ever we do now when we delete an instance from the UI editor.