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 70180 - BeanContext hierarchies not recognized
Summary: BeanContext hierarchies not recognized
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
Depends on:
Reported: 2005-12-10 09:10 UTC by kitfox
Modified: 2005-12-10 11:49 UTC (History)
0 users

See Also:
Exception Reporter:

BeanContext (470 bytes, text/plain)
2005-12-10 09:11 UTC, kitfox
BeanContextChild (496 bytes, text/plain)
2005-12-10 09:11 UTC, kitfox

Note You need to log in before you can comment on or make changes to this bug.
Description kitfox 2005-12-10 09:10:29 UTC
I've created some simple beans that extend BeanContextSupport and
BeanContextChildSupport.  When I add them to the bean palette and then click on
the body of a JPanel, these beans are correctly added to my application. 
However, I am not able to arrane them hierarchically in the Navigator/Inspector

Since they are proper BeanContext beans, NetBeans ought to be able to
interactively rearrange the context groupings (much the way it can rearrange the
hierarchy of Components).  Can NetBeans do this?  Are these beans I made valid?
Comment 1 kitfox 2005-12-10 09:11:09 UTC
Created attachment 27702 [details]
Comment 2 kitfox 2005-12-10 09:11:22 UTC
Created attachment 27703 [details]
Comment 3 kitfox 2005-12-10 09:17:37 UTC
To add to the above: after I created my beans, I created a JFrame panel, and
then I added two MyContext beans and one MyContextChild bean to the form.  The
beans appeared in my navigator inspector as myContext1, myContext2 and
myContextChild1.  I then clicked on myContextChild1 and dragged it on top of
myContext1.  I was expecting it to be added to this bean context, much the way
one might click on a JLabel to add it to a nested JPanel.  I also tried clicking
and dragging myContext2 onto myContext1, but it was not added.  It would be nice
if bean context rearrangement liek this could be done.
Comment 4 Tomas Pavek 2005-12-10 11:33:02 UTC
NetBeans GUI builder does not support BeanContext. Nobody complained about it
yet (maybe surprising; I vaguelly remember a question about it years ago). Seems
BeanContext is not much used in practice... so I doubt we'll implement support
for it.
Comment 5 kitfox 2005-12-10 11:49:26 UTC
Okay.  Is there some other feature I can use to group my beans hierarchically? 
Or do I have to implement a whole new module in the NetBeans API?