title: how to add row values to jtable in java swing?
body: <p>I have a <strong>jcombo box</strong> which has some items like <strong>"schoolbooks","collegebooks","historybooks"</strong>.and i have dynamic <strong>ArrayList object of corresponding books</strong>...<strong>When i click the combo box item "schoolbooks" or "historybooks" ,it should display the contents in JTable from the arraylist</strong>.while every action performing,the JTable has to display the contents of the corresponding item  of 'schoolbooks' or 'historybooks' .it <strong><em>should not append new rows when every action is performing</em></strong> ...i have used <strong>default table model</strong> in this.but when i <strong>add 3 or 4 rows  using default table model</strong>,its appending the row with previous here..<strong>if i use removeRow(i) in for loop</strong> ,its <strong>removing 1 row or 2 rows</strong> only...<strong>Its not removing previous all rows suppose if i have 7 rows</strong> ..i am not able to solve this..please if anyone know this,please help...</p>