rapastranac opened a new issue, #5774:
URL: https://github.com/apache/netbeans/issues/5774
### Apache NetBeans version
Apache NetBeans 17
### What happened
Please find attached two minimum reproducible examples. One uses **maven**
and the other one uses **ant**.
When creating a BeanInfo using netbeans, in the getBdescriptor() method, we
can set the value "containerDelegate" using the following line of code to
delegate to another container.
```java
beanDescriptor.setValue("containerDelegate", "getInnerPanel");
```
These examples work with all previous JDK versions, except for JDK 19
I also tested JDK 13, 14, 15, 16, 17 and 18 and they all work fine.
[DummyAnt.zip](https://github.com/apache/netbeans/files/11152746/DummyAnt.zip)
[DummyMaven.zip](https://github.com/apache/netbeans/files/11152747/DummyMaven.zip)
### How to reproduce
Using the Dummy Projects.
With any new JPanel, or using MainPanel:
- Drag or add a SectionPanel instance to MainPanel
- Then add any other widget (i.e. JLabel) from the palette in the
SectionPanel instance
SectionPanel should be recognized as a Container, therefore the widget
should get added into the SectionPanel instance
### Did this work correctly in an earlier version?
Apache NetBeans 16
### Operating System
Windows 11
### JDK
19.0.2
### Apache NetBeans packaging
Apache NetBeans platform
### Anything else
- This problem occurs all the time under the aforementioned description
- **Here's a screenshot of how this example should look**

- And here's the Navigator screenshot showing that it works as expected

- **Here's a screenshot after attempting to perform the same steps using
JDK19**

- Here's the Navigator screenshot showing that a widget cannot be added to
the SectionPanel instance

### Are you willing to submit a pull request?
No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists