Lei da ficha limpa
/*
* To change this template, choose Tools | Templates * and open the template in the editor. */
package classes;
/** * * @author aluno */ public class Pessoa { private String nome; private String dataNasc; private String rg; private String cpf;
/** * @return the nome */ public String getNome() { return nome; }
/** * @param nome the nome to set */ public void setNome(String nome) { this.nome = nome; }
/** * @return the dataNasc */ public String getDataNasc() { return dataNasc; }
/** * @param dataNasc the dataNasc to set */ public void setDataNasc(String dataNasc) { this.dataNasc = dataNasc; }
/** * @return the rg */ public String getRg() { return rg; }
/** * @param rg the rg to set */ public void setRg(String rg) { this.rg = rg; }
/** * @return the cpf */ public String getCpf() { return cpf; }
/** * @param cpf the cpf to set */ public void setCpf(String cpf) { this.cpf = cpf; }
}
FormCadPessoa
/* * To change this template, choose Tools | Templates * and open the template in the editor. */
/* * FormCadPessoa.java * * Created on 23/02/2012, 20:39:25 */
package cadastros; import classes.Pessoa; import java.util.logging.Level; import java.util.logging.Logger;
/**
* * @author aluno */ public class FormCadPessoa extends javax.swing.JFrame {
/** Creates new form FormCadPessoa */ public FormCadPessoa() { initComponents(); }
/** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */