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.
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 panel. 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?
Created attachment 27702 [details] BeanContext
Created attachment 27703 [details] BeanContextChild
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.
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.
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?