Yeah, the instantiation is working as expected, but this wasn't a problem anyway.
What I want to do is the following: move the configuration logic related to the custom JPanel entirely to its own YAML file.
# Main.yml
JFrame:
- name: main
- title: title
- content:
- JTabbedPane:
- name: tabs
- content:
<reference or import MyCustomPanel.yml>
# MyCustomJPanel.yml
MyCustomJPanel:
- name: custom
- tabTitle: something
I want to configure MyCustomJPanel in its own YAML file, not in the Main.yml. If I specify that the content of the JTabbedPane is MyCustomPanel then it gets instantiated, but the configuration will still be in the Main.yml and the stuff I wrote in MyCustomPanel.yml is ignored.
Maybe my explanation is hazy or I'm just approaching this from the wrong direction, but I really can't describe this more thoroughly.
Regards,
Kohányi Róbert