private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
//        System.out.println(tabla.getSelectedRow());
        
        if(tabla.getSelectedRow()==-1){
            JOptionPane.showMessageDialog(null, "No hay cliente seleccionado.");
        }else{
            cliente=clientes.get(tabla.getSelectedRow());
            this.setFrameModificar();
            this.modificarDatos();
            
            
        }
    }//GEN-LAST:event_jButton1ActionPerformed