private void MostrarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MostrarActionPerformed
        // TODO add your handling code here:
        try{
            con=Principal.conexion(con);
            re=Principal.ResuPedi(re);
            ResultSetMetaData datos= re.getMetaData();
            int cont= datos.getColumnCount();
            for(int i=1; i<= cont; i++){
                table.addColumn(datos.getColumnLabel(i));
            }
            while(re.next()){
                Object [] k = new Object[cont];
                for(int i=0; i< cont; i++){
                    k[i]=re.getObject(i+1);
                }
                table.addRow(k);
            }
            re.close();
            con.close();            
        }
        catch (Exception e){
            e.printStackTrace();
        }
    }//GEN-LAST:event_MostrarActionPerformed