how do I "modify" in netbeans interface without a database?

0

I need an internal frame to modify a "add client", they are different classes and I do not know how to call the saved data in adding client, thanks ...

 
 
 private void btnGuardarClienteActionPerformed(java.awt.event.ActionEvent evt) {                                                  
        // TODO add your handling code here:
        this.setVisible(false);
    }                                                 

    private void btnCancelarClienteActionPerformed(java.awt.event.ActionEvent evt) {                                                   
        // TODO add your handling code here:
        this.setVisible(false);
    }                                                  

    private void btnContinuarActionPerformed(java.awt.event.ActionEvent evt) {                                             
        // TODO add your handling code here:
     
        Cliente c=new Cliente();
         for(int i=0;i<cli.size();i++){
           if(cli.get(i).getRut().equals(txtViejo)){
            txtRutNuevo.setText(c.getRut());
            txtNombreNuevo.setText(c.getNombre());
            txtPatenteNueva.setText(c.getPpu());
            txtMarcaNueva.setText(c.getMa());
            txtModeloNuevo.setText(c.getModelo());
            cli.add(c);
             JOptionPane.showMessageDialog(null, "Cliente Modificado");
            this.setVisible(false);
                    
        }
        else{
            JOptionPane.showMessageDialog(null, "Cliente No Encontrado");
        }  
         }
    
asked by efer 02.12.2018 в 03:08
source

0 answers