matteodg created NETBEANS-3725:
----------------------------------

             Summary: Not honoring containerDelegate in BeanInfo
                 Key: NETBEANS-3725
                 URL: https://issues.apache.org/jira/browse/NETBEANS-3725
             Project: NetBeans
          Issue Type: Bug
          Components: guibuilder - Code
    Affects Versions: 11.2, 11.1
            Reporter: matteodg
             Fix For: 11.3
         Attachments: ContainerDelegateExample.zip

We are using a custom GUI bean (SectionPanel) whose containerDelegate has been 
set in the SectionPanelBeanInfo not being the SectionPanel itself but an inner 
panel:
{code:java}
BeanDescriptor beanDescriptor = new BeanDescriptor(SectionPanel.class , null);
beanDescriptor.setValue("containerDelegate", "getInnerPanel");{code}
In NB 8.2 that was honored by Matisse allowing to use SectionPanel as a 
component container, but since NB 11.1+ that is not honored anymore... Matisse 
does not pick up the containerDelegate, not allowing to use the SectionPanel as 
a container anymore.

 

Attached an example that works with NB8.2: the Java code generated by Matisse 
calls getInnerPanel() method allowing to put a JSlider inside the SectionPanel 
in the MainFrame example, whereas in NB11.1 the Java code generated by Matisse 
does not call that method anymore.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to