Ejemplo n.º 1
0
  private void limpaNaoSelecionados(JTablePad tab) {

    int linhas = tab.getNumLinhas();
    int pos = 0;
    try {
      for (int i = 0; i < linhas; i++) {
        if (tab.getValor(i, 0) != null && !((Boolean) tab.getValor(i, 0)).booleanValue()) { // xxx
          tab.tiraLinha(i);
          i--;
        }
      }
    } catch (Exception e) {
      e.printStackTrace();
    }
  }