private void cadastro ()
{
try
{
Aluno alu = new Aluno();
alu.setBairro(jTbairro.getText());
alu.setCep(jTcep.getText());
alu.setCidade(jTcidade.getText());
alu.setComplemento(jTcomplemento.getText());
alu.setCpf(jTcpf.getText());
alu.setDataInicio(jTdataInicio.getText());
alu.setDataNascimento(jTdataNascimento.getText());
alu.setDataPagamento(jTdataPagamento.getText());
alu.setEmail(jTemail.getText());
alu.setEstadoCivil(jCestadoCivil.getSelectedIndex());
alu.setLogradouro(jTlogradouro.getText());
alu.setMatricula(Integer.valueOf(jTmatricula.getText()));
alu.setNome(jTnome.getText());
alu.setNumero(jTnumero.getText());
alu.setProfissao(jTprofissao.getText());
alu.setRg(jTrg.getText());
alu.setSexo(jCsexo.getSelectedIndex());
alu.setTelefoneCelular(jTtelefoneCelular.getText());
alu.setTelefoneResidencial(jTtelefoneFixo.getText());
alu.setUf(jCuf.getSelectedIndex());
}
catch (SQLException ex)
{
JOptionPane.showMessageDialog(null, "Erro ao cadastrar\n "+ex);
}
}
O que pode ser?
Desde já obrigado a toda comunidade...