private void jbBorrarListaErroresActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_jbBorrarListaErroresActionPerformed
   listaErrores.clear();
   jTable1.setModel(
       new DefaultTableModel(
           new String[][] {
             {null, null, null, null},
             {null, null, null, null},
             {null, null, null, null},
             {null, null, null, null}
           },
           title));
 } // GEN-LAST:event_jbBorrarListaErroresActionPerformed
  public void end() {
    final int[] selected = table.getSelectedRows();

    model.clear(rows.size());
    Iterator i = rows.iterator();
    while (i.hasNext()) {
      model.addEntry((Map) i.next());
    }
    rows.clear();

    if (SwingUtilities.isEventDispatchThread()) {
      SwingUtilities.invokeLater(
          new Runnable() {
            public void run() {
              model.fireListeners();
              fixSelection(selected);
            }
          });
    } else {
      model.fireListeners();
      fixSelection(selected);
    }
  }