title: Refresh jTable using binding with NetBeans
body: <p>I'm working on a project in NetBeans , about a small restaurant.</p>
  
  <p>I have 2 Jtables which i bound to my database and there are 2 form that I use to insert data.First table is to insert employee data and the second one s to insert item details.</p>
  
  <p>I <strong>want the records in the tables to be refreshed with each insert</strong>.So I created 2 refresh methods , pass ( List l) as parameter and copy and paste the binding codes from generated codes and pass l to binding .</p>
  
  <p>But it doesn't work .Why is that ?
  <strong>Is there any other way to refresh that table's data ?</strong></p>
  
  <p>here are my refresh tables </p>
  
  <pre><code>private  void refreshItm(List l){
          jTableBinding = org.jdesktop.swingbinding.SwingBindings.createJTableBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, itemsList, jTable2);
          columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${itemid}"));
          columnBinding.setColumnName("Itemid");
          columnBinding.setColumnClass(Integer.class);
          columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${itemname}"));
          columnBinding.setColumnName("Itemname");
          columnBinding.setColumnClass(String.class);
          columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${availablequantity}"));
          columnBinding.setColumnName("Availablequantity");
          columnBinding.setColumnClass(Short.class);
          columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${price}"));
          columnBinding.setColumnName("Price");
          columnBinding.setColumnClass(Integer.class);
          bindingGroup.addBinding(jTableBinding);
          jTableBinding.bind();
      }
  
      private void refreshEmp(List l){
          org.jdesktop.swingbinding.JTableBinding jTableBinding = org.jdesktop.swingbinding.SwingBindings.createJTableBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, l, jTable1);
          org.jdesktop.swingbinding.JTableBinding.ColumnBinding columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${empid}"));
          columnBinding.setColumnName("Empid");
          columnBinding.setColumnClass(String.class);
          columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${empname}"));
          columnBinding.setColumnName("Empname");
          columnBinding.setColumnClass(String.class);
          columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${address}"));
          columnBinding.setColumnName("Address");
          columnBinding.setColumnClass(String.class);
          bindingGroup.addBinding(jTableBinding);
          jTableBinding.bind();
      }
  </code></pre>