I am new into Swing and Plugin development and have a hard time figuring out how to create the User Interface elements for my plugin. I want a dialog with radio buttons which trigger the (de-)activation of their corresponding ui elements:
- If the first radio button "New" is active, a text input field beside it gets activated and should be filled with any string by the user.
- If the second radio button "Saved" is active, a combobox with predefined values gets activated and one of the items should be selected by the user.
I created a mockup image to show what i mean:
Is there any documentation or tutorial i can study? I did not find much useful information. Maybe you can give me some pointers in the right direction. And if there is a better way to achieve the same result with a better UI experience, i am all ears. Maybe only the combobox with integrated "new item..." field.