views:

11

answers:

0

I have a program that is displaying a list of students - which are enrolled in the selected course - in a JTable. How can I remove the JTable before updating it when another course is selected? As it is, when the selected course is changed, the new JTable with students for that course is simply appended below the previous one.