I have a button that creates a table that can vary in size each time but the way im doing it just keeps adding new tables next to the existing tables. The code im using is below.
Object[][] data = table; JTable tableT = new JTable(data, columnNames); tablePanel.add(tableT);
Can anyone suggest a way that i can update a table rather than create a new one each time or remove the existing table before i insert a new table.