How do you change data in jtable in java
I have a joptionpane that takes input and puts it into my jtable (I'm using a Object[][] for the array and abstract table model). I want to know how to erase all the data in the table and insert new data. So for example I would enter in a few strings into the jtable then I want to say click a button and have all the data in the table be removed and be able to add new strings from the first row and so on.