title: Java add/remove row to JTable?
body: <p>I am trying to figure out how to add and remove rows from a JTabel. I want to remove rows based on the first column which is a unique ID.</p>
  
  <p>I am currently creating my table like this:</p>
  
  <pre><code>       String[] colName = new String[] {
             "ID#", "Country", "Name", "Page titel", "Page URL", "Time"
         };
         Object[][] products = new Object[][] {
             {
                 "867954", "USA", "Todd", "Start", "http://www.url.com", "00:04:13"
             }, {
                 "522532", "USA", "Bob", "Start", "http://www.url.com", "00:04:29"
             }, {
                 "4213532", "USA", "Bill", "Start", "http://www.url.com", "00:04:25"
             }, {
                 "5135132", "USA", "Mary", "Start", "http://www.url.com", "00:06:23"
             }
         };
  
  
         table = new JTable(products, colName);
  </code></pre>
  
  <p>How could i add a new row and delete the row with ID # <code>867954</code> ? </p>