I am trying to develop an application which would use a combo box to obtain a set of records from a database table. Now on the count of number of records that are available in the table I need to populate a JPanel say Parent with another JPanel say Child which has a set of swing controls viz. checkbox, label and a TextField. The number of occurrences of this child JPanel should be equivalent to the number of records in the table.
I would also like to refresh (repaint) the Parent JPanel with newer numbers of child JPanels once somebody selects another table name from the combo box.
Can somebody help me out with this implementation