title: How can I copy some part of jTable to another jTable?
body: <p>I have a list persons (in a jTable) and want to export it to excel file I need each person go to separated sheet so I need split the original jTable, but I don't know how?</p>
  
  <p>this is what I want to do?   </p>
  
  <pre><code>public void exportToExcelSelectedPersons(HSSFWorkbook hwb, JTable table) {
          String sheetName = null;
          final PersonsList personList = PersonsList.getInstance();
          TimeTable tt = new TimeTable();
  
      tt = new TimeTable();
      int[] selectedIndexes = personList.getSelectedIndices();
      sheetName = personList.getModel().getElementAt(selectedIndexes[0]).getName();
      int i, j;
      for (i = 1; i &lt; table.getRowCount(); i++) {
          for (j = 1; j &lt; table.getColumnCount(); j++) {
              if (table.getValueAt(i, j) instanceof PersonInfo) {
                  break;
              }
              //copy table (for this specefic person) to tt
              //exportToExcel(hwb, tt, sheetName);
          }
      }
  }
  </code></pre>