title: Java - Adding columns and data into existing JTable
body: <p>I have a small java application in which i want to put some data and it's columns inside an existing JTable.</p>
  
  <p>So here is my columns and data;</p>
  
  <pre><code>String[][] data; // this object gets it's contents from another function
  String[] columns={"Name","Value"}; //these are the columns that should be added to JTable
  </code></pre>
  
  <p>So what should i do to add and see the data inside "existing" JTable? I don't want to create a dynamic JTable.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I wrote this into the function that fills my variables above. How can i refresh my JTable after that?</p>
  
  <pre><code>tblSonuc=new JTable(data,columns);
  </code></pre>