Example #1
0
 private void preencherTabela() {
   Vector linhas;
   linhas =
       controladora.obterLinhas(
           "" + this.tfPesquisar.getText(), cbSatus.getSelectedItem().toString());
   DefaultTableModel modelo = (DefaultTableModel) this.tbCargos.getModel();
   int numLinhas = linhas.size();
   for (int i = 0; i < numLinhas; i++) {
     modelo.insertRow(modelo.getRowCount(), (Vector) linhas.get(i));
   }
 }
Example #2
0
 private void btPesquisarMouseClicked(
     java.awt.event.MouseEvent evt) { // GEN-FIRST:event_btPesquisarMouseClicked
   limparTabela();
   preencherTabela(
       controladora.pesquisar(tfPesquisar.getText(), cbSatus.getSelectedItem().toString()));
 } // GEN-LAST:event_btPesquisarMouseClicked