Using the Intellij UI Designer I've created a new GUI Form (JGoodies) and I am able to add this to a JTabbedPane (in another form) by selecting the "Non-Palette Component" option in the Palette. This works just fine, but what I would really like is to programatically create such a Form and add this to the JTabbedPane. The use case is as follows:
I have a form that allows me to search for customers that displays a list search results. I also have an edit customer form which allows me to edit a single customer. What I would like is to be able to create a new tab every time I click on a customer in the search results. This should create a new edit customer tab and add it to the JTabbedPane. Since Intellij usually takes care of creating the Form from its .form file, I have no way of initializing it manually - I need to be able to somehow create a swing component, which I can add to the JTabbedPane. Does anyone know how to do this? I would appreciate any help I can get.