private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
        try {
            if(0 <= this.jTable1.getSelectedRow()){
                 if(this.jTable1.getValueAt(this.jTable1.getSelectedRow(), 0)!=null   ){
            // TODO add your handling code here:
        pedido = Pedido.buscar_pedido((String) this.jTable1.getValueAt(this.jTable1.getSelectedRow(), 0));
                     VModificar_pedido m = new VModificar_pedido(pedido);
                     m.setVisible(true);
                 }
            }
        } catch (SQLException ex) {
            Logger.getLogger(VPedidos.class.getName()).log(Level.SEVERE, null, ex);
        }
  
           

        
    }//GEN-LAST:event_jButton4ActionPerformed