private void RcodigoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_RcodigoActionPerformed
       vtexto  =  Ctexto.getText();
     
       DefaultTableModel tr = (DefaultTableModel)tabla.getModel();

       try
         {         
           Statement s = cone.getMiConexion().createStatement();
           String consul="select * from correpo where edo_reg = 'A' and grupo = '"+Cgrupo+"' and codigo like '%"+vtexto+"%'";
           ResultSet rs = s.executeQuery(consul);

           while (rs.next())
           {

             String var1 = rs.getString("id");
             String var2 =  (PROCE.verfecha(rs.getString("fecha_rec")));
             String var3 = rs.getString("des_rem");
             String var4 = rs.getString("codigo");
             String var5 = rs.getString("nro_oficio");
             tr.addRow(new Object[]{var1, var2, var3, var4, var5,});
             tabla.setModel(tr);
             TableColumn column = null;
             for (int i = 0; i < 3; i++) {
                  column = tabla.getColumnModel().getColumn(i);
                  if (i == 0) {column.setPreferredWidth(0);}
                  if (i == 1) {column.setPreferredWidth(15);}
                  if (i == 2) {column.setPreferredWidth(250);}
                  if (i == 3) {column.setPreferredWidth(10);}
                  if (i == 4) {column.setPreferredWidth(10);}
             }
           }
         }
          catch (Exception e)
          {
          }
    }//GEN-LAST:event_RcodigoActionPerformed