
Hi,
I have a requirement where the UI has to be dynamically generated. Please see the above image. Step 1 consists of a Dialog with a jcombobox and and jbutton. When I click the “+” button in step 1, a new row should get dynamically added to the jdialog, this is shown in Step 2. Similarly, more rows can be added using the “+” button. Pressing the “-” button should remove the row. Also, the JDialog should have a vertical scroll bar when necessary. I have been trying Grid layout but to no avail. Any help will be appreciated.
Try this link on how to add components on runtime and this thread has an example to add/ remove jbuttons on runtime