Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-3725

Not honoring containerDelegate in BeanInfo

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 11.1, 11.2
    • 11.3
    • guibuilder - Code
    • None

    Description

      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:

      BeanDescriptor beanDescriptor = new BeanDescriptor(SectionPanel.class , null);
      beanDescriptor.setValue("containerDelegate", "getInnerPanel");

      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.

      Attachments

        Activity

          People

            matteodg@infinito.it matteodg
            matteodg@infinito.it matteodg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: