Ir ao conteúdo
  • Cadastre-se

Gabrielvfr

Membros Plenos
  • Total de itens

    24
  • Registro em

  • Última visita

  • Qualificações

    N/D
  1. Bom dia Pessoal baixei o jogo Outlast 2 crackeado(Tô desempregado galera xD) e estou tendo problemas de desempenho o uso da gpu cai aleatoriamente e por conseguinte ocorre o gargalo, isso ocorre independente da configuração do jogo ou resolução, aliás estou jogando em full hd. Meu PC: GTX 1050 TI 4GB i7 3770 8 GB de ram PS. Os requisitos do jogo estão abaixo da minha máquina e vejo gente no youtube com a mesma gpu e cpu equivalente jogando de boa. Podem me ajudar?
  2. Cara desculpe a demora, eu consegui terminar. Ainda assim obrigado pela ajuda!
  3. Cara, descobri o que fazer, na verdade eu deveria criar actionListener para a interface package Trabalho.Controller; import Trabalho.Model.Formacao; import Trabalho.Model.Curriculo; import Trabalho.Model.Lista; import Trabalho.Model.Experiencias_Profissionais; import Trabalho.View.Interface_Cadastro; import Trabalho.View.Buscador; import static Trabalho.View.Interface_Cadastro.Atribuicoes1; import static Trabalho.View.Interface_Cadastro.Atribuicoes2; import static Trabalho.View.Interface_Cadastro.Atribuicoes3; import static Trabalho.View.Interface_Cadastro.Atribuicoes4; import static Trabalho.View.Interface_Cadastro.CPF; import static Trabalho.View.Interface_Cadastro.CargoEmpresa1; import static Trabalho.View.Interface_Cadastro.CargoEmpresa2; import static Trabalho.View.Interface_Cadastro.CargoEmpresa3; import static Trabalho.View.Interface_Cadastro.CargoEmpresa4; import static Trabalho.View.Interface_Cadastro.DataFinal1; import static Trabalho.View.Interface_Cadastro.DataFinal2; import static Trabalho.View.Interface_Cadastro.DataFinal3; import static Trabalho.View.Interface_Cadastro.DataFinal4; import static Trabalho.View.Interface_Cadastro.DataInicial1; import static Trabalho.View.Interface_Cadastro.DataInicial2; import static Trabalho.View.Interface_Cadastro.DataInicial3; import static Trabalho.View.Interface_Cadastro.DataInicial4; import static Trabalho.View.Interface_Cadastro.Email; import static Trabalho.View.Interface_Cadastro.Endereco; import static Trabalho.View.Interface_Cadastro.Idade; import static Trabalho.View.Interface_Cadastro.InstituicaoCurso1; import static Trabalho.View.Interface_Cadastro.InstituicaoCurso2; import static Trabalho.View.Interface_Cadastro.InstituicaoCurso3; import static Trabalho.View.Interface_Cadastro.InstituicaoCurso4; import static Trabalho.View.Interface_Cadastro.NivelCurso1; import static Trabalho.View.Interface_Cadastro.NivelCurso2; import static Trabalho.View.Interface_Cadastro.NivelCurso3; import static Trabalho.View.Interface_Cadastro.NivelCurso4; import static Trabalho.View.Interface_Cadastro.Nome; import static Trabalho.View.Interface_Cadastro.NomeCurso1; import static Trabalho.View.Interface_Cadastro.NomeCurso2; import static Trabalho.View.Interface_Cadastro.NomeCurso3; import static Trabalho.View.Interface_Cadastro.NomeCurso4; import static Trabalho.View.Interface_Cadastro.NomeEmpresa1; import static Trabalho.View.Interface_Cadastro.NomeEmpresa2; import static Trabalho.View.Interface_Cadastro.NomeEmpresa3; import static Trabalho.View.Interface_Cadastro.NomeEmpresa4; import static Trabalho.View.Interface_Cadastro.SituacaoCurso1; import static Trabalho.View.Interface_Cadastro.SituacaoCurso2; import static Trabalho.View.Interface_Cadastro.SituacaoCurso3; import static Trabalho.View.Interface_Cadastro.SituacaoCurso4; import static Trabalho.View.Interface_Cadastro.Telefone; import static Trabalho.View.Interface_Cadastro.Sexo; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * * @author Gabriel */ public class interfaceControlador implements ActionListener { String sexo; Experiencias_Profissionais[]experiencias = new Experiencias_Profissionais[4]; Formacao [] formacoes = new Formacao[4]; Lista<Curriculo> listaCurriculos = new Lista<>(); Buscador buscador = new Buscador(); @Override public void actionPerformed(ActionEvent ae) { if(ae.getActionCommand().equals("Cadastrar")){ sexo = Sexo.getSelectedItem().toString(); experiencias[0] = new Experiencias_Profissionais(); experiencias[1] = new Experiencias_Profissionais(); experiencias[2] = new Experiencias_Profissionais(); experiencias[3] = new Experiencias_Profissionais(); experiencias[0].setEmpresa(NomeEmpresa1.getText()); experiencias[0].setCargo(CargoEmpresa1.getText()); experiencias[0].setDataInicio(DataInicial1.getText()); experiencias[0].setDataFinal(DataFinal1.getText()); experiencias[0].setAtribuicoes(Atribuicoes1.getText()); experiencias[1].setEmpresa(NomeEmpresa2.getText()); experiencias[1].setCargo(CargoEmpresa2.getText()); experiencias[1].setDataInicio(DataInicial2.getText()); experiencias[1].setDataFinal(DataFinal2.getText()); experiencias[1].setAtribuicoes(Atribuicoes2.getText()); experiencias[2].setEmpresa(NomeEmpresa3.getText()); experiencias[2].setCargo(CargoEmpresa3.getText()); experiencias[2].setDataInicio(DataInicial3.getText()); experiencias[2].setDataFinal(DataFinal3.getText()); experiencias[2].setAtribuicoes(Atribuicoes3.getText()); experiencias[3].setEmpresa(NomeEmpresa4.getText()); experiencias[3].setCargo(CargoEmpresa4.getText()); experiencias[3].setDataInicio(DataInicial4.getText()); experiencias[3].setDataFinal(DataFinal4.getText()); experiencias[3].setAtribuicoes(Atribuicoes4.getText()); formacoes[0] = new Formacao(); formacoes[1] = new Formacao(); formacoes[2] = new Formacao(); formacoes[3] = new Formacao(); formacoes[0].setNomeCurso(NomeCurso1.getText()); formacoes[0].setInstituicao(InstituicaoCurso1.getText()); formacoes[0].setNivel(NivelCurso1.getText()); formacoes[0].setSituacao(SituacaoCurso1.getText()); formacoes[1].setNomeCurso(NomeCurso2.getText()); formacoes[1].setInstituicao(InstituicaoCurso2.getText()); formacoes[1].setNivel(NivelCurso2.getText()); formacoes[1].setSituacao(SituacaoCurso2.getText()); formacoes[2].setNomeCurso(NomeCurso3.getText()); formacoes[2].setInstituicao(InstituicaoCurso3.getText()); formacoes[2].setNivel(NivelCurso3.getText()); formacoes[2].setSituacao(SituacaoCurso3.getText()); formacoes[3].setNomeCurso(NomeCurso4.getText()); formacoes[3].setInstituicao(InstituicaoCurso4.getText()); formacoes[3].setNivel(NivelCurso4.getText()); formacoes[3].setSituacao(SituacaoCurso4.getText()); listaCurriculos.inserirNaFrente(new Curriculo()); for( int i = 0;i<listaCurriculos.tamanho();i++){ listaCurriculos.get(i).setNome(Interface_Cadastro.Nome.getText()); listaCurriculos.get(i).setSexo(sexo); listaCurriculos.get(i).setIdade(Integer.parseInt(Idade.getText())); listaCurriculos.get(i).setTelefone(Telefone.getText()); listaCurriculos.get(i).setCpf(CPF.getText()); listaCurriculos.get(i).setEndereco(Endereco.getText()); listaCurriculos.get(i).setEmail(Email.getText()); listaCurriculos.get(i).adicionarExperiencia(experiencias); listaCurriculos.get(i).adicionarFormacao(formacoes); } } if(ae.getActionCommand().equals("Limpar")){ NomeEmpresa1.setText(" "); CargoEmpresa1.setText(" "); DataInicial1.setText(" "); DataFinal1.setText(" "); Atribuicoes1.setText(" "); NomeEmpresa2.setText(" "); CargoEmpresa2.setText(" "); DataInicial2.setText(" "); DataFinal2.setText(" "); Atribuicoes2.setText(" "); NomeEmpresa3.setText(" "); CargoEmpresa3.setText(" "); DataInicial3.setText(" "); DataFinal3.setText(" "); Atribuicoes3.setText(" "); NomeEmpresa4.setText(" "); CargoEmpresa4.setText(" "); DataInicial4.setText(" "); DataFinal4.setText(" "); Atribuicoes4.setText(" "); NomeCurso1.setText(" "); InstituicaoCurso1.setText(" "); NivelCurso1.setText(" "); SituacaoCurso1.setText(" "); NomeCurso2.setText(" "); InstituicaoCurso2.setText(" "); NivelCurso2.setText(" "); SituacaoCurso2.setText(" "); NomeCurso3.setText(" "); InstituicaoCurso3.setText(" "); NivelCurso3.setText(" "); SituacaoCurso3.setText(" "); NomeCurso4.setText(" "); InstituicaoCurso4.setText(" "); NivelCurso4.setText(" "); SituacaoCurso4.setText(" "); Nome.setText(" "); Idade.setText(" "); Telefone.setText(" "); CPF.setText(" "); Endereco.setText(" "); Email.setText(" "); } if(ae.getActionCommand().equals("Exibir")){ System.out.println(listaCurriculos.tamanho()); listaCurriculos.mostrar(); String[]dadosCurriculos = new String[listaCurriculos.tamanho()]; for(int i =0;i<listaCurriculos.tamanho();i++){ for(int j = i;j<4;j++){ dadosCurriculos[i] = listaCurriculos.get(i).getNome() +"," +listaCurriculos.get(i).getAreaAtuacao()+","+listaCurriculos.get(i).getCpf()+","+listaCurriculos.get(i).getEmail()+ ","+ listaCurriculos.get(i).getTelefone()+"," +listaCurriculos.get(i).getEndereco()+","+listaCurriculos.get(i).getSexo()+","+listaCurriculos.get(i).getSexo()+","+listaCurriculos.get(i).getComunicao() + "," + listaCurriculos.get(i).getExperiencia(j).getAtribuicoes() + "," + listaCurriculos.get (i).getExperiencia(j).getCargo () + "," + listaCurriculos.get (i).getExperiencia (j).getEmpresa () + "," + listaCurriculos.get (i).getExperiencia (j).getDataInicio () + "," + listaCurriculos.get (i).getExperiencia (j).getDataFinal (); System.out.println(dadosCurriculos[i]); } } for(int i =0;i<dadosCurriculos.length;i++){ Interface_Cadastro.exibirCurriculos.setText(Interface_Cadastro.exibirCurriculos.getText() + "\n" + listaCurriculos.get(i)); } } if(ae.getActionCommand().equals("Sair")){ System.exit(0); } if(ae.getActionCommand().equals("Buscar Profissional")){ buscador = new Buscador(); buscador.setLocationRelativeTo(null); buscador.setVisible(true); } } } adicionado 11 minutos depois @giu_d Agora o problema é que preciso adicionar todas as características de um currículo em uma posição da lista em uma string, e dentre essas características, estão as características da referencia a classe experiências profissionais armazenadas no vetor experiências, que é estanciada em cada referencia para currículo na lista, ou seja cara referência a classe Currículo na lista possui um vetor com 4 experiências profissionais, que devem ter suas características printadas nessa String... for(int i =0;i<listaCurriculos.tamanho();i++){ for(int j = i;j<4;j++){ dadosCurriculos[i] = listaCurriculos.get(i).getNome() +"," +listaCurriculos.get(i).getAreaAtuacao()+","+listaCurriculos.get(i).getCpf()+","+listaCurriculos.get(i).getEmail()+ ","+ listaCurriculos.get(i).getTelefone()+"," +listaCurriculos.get(i).getEndereco()+","+listaCurriculos.get(i).getSexo()+","+listaCurriculos.get(i).getSexo()+","+listaCurriculos.get(i).getComunicao() + "," + listaCurriculos.get(i).getExperiencia(j).getAtribuicoes() + "," + listaCurriculos.get (i).getExperiencia(j).getCargo () + "," + listaCurriculos.get (i).getExperiencia (j).getEmpresa () + "," + listaCurriculos.get (i).getExperiencia (j).getDataInicio () + "," + listaCurriculos.get (i).getExperiencia (j).getDataFinal (); System.out.println(dadosCurriculos[i]); } } Mas ele printa a mesma experiência 4 vezes, alias printa a mesta string 4 vezes, quando deveria printar uma só, porém com 4 experiências profissionais diferentes. Na imagem abaixo por exemplo estou inserindo duas experiências profissionais por exemplo Ele so printa os dados da primeira representada por d ai 4 vezes
  4. Ok, agradeço todo o suporte, conversei com minha professora e ela disse que eu tenho que criar um "ouvinte" para os eventos dos botões da interface no Controller, agora preciso saber como, o problema é que o trabalho é pra terça, ela explicou isso muito pelos côcos.
  5. Não estou tendo problemas com os warnings não, a questão toda agora é tornar esses eventos dos botões que estão em private em públicos para poder chamar eles no controller, mas não encontro como...
  6. Cara eu solucionei o problema, o que acontecia era que eu estava usando o método get(Item) da lista, quando na verdade eu deveria usar o get(int índice). Como não usei ele estava pegando sempre a mesma referência. Agradeço pelo seu esforço. O problema agora é que a professora quer que eu use o padrão mvc para o trabalho e eu preciso tornar os eventos dos botões em públicos para estância - los na classe controller pois o netbeans cria eles privados.
  7. Obrigado amigo, engraçado esse erro não estava ocorrendo, provavelmente se deu depois de eu ter alterado o nome de alguns botões e campos na interface
  8. E era justamente isso que eu iria fazer.
  9. //Codigo da interface grafica import java.awt.EventQueue; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.logging.Level; import java.util.logging.Logger; /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * * @author Gabriel */ public class Interface_Cadastro extends javax.swing.JFrame { /******************************************************************************** Cria uma arrayList de curriculos,um array de experiencias e outro de formacoes, uma Lista de curriculos e estância um buscador ******************************************************************************/ String sexo; int adicionado =1; Experiencias_Profissionais[]experiencias = new Experiencias_Profissionais[4]; Formacao [] formacoes = new Formacao[4]; Lista<Curriculo> listaCurriculos = new Lista<Curriculo>(); Curriculo curriculo = new Curriculo(); Buscador buscador = new Buscador(); /** * Creates new form Interface_Cadastro */ public Interface_Cadastro() { initComponents(); Sexo.removeAllItems(); Sexo.addItem("Masculino"); Sexo.addItem("Feminino"); } /** * 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. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code"> private void initComponents() { jScrollPane8 = new javax.swing.JScrollPane(); jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); Nome = new javax.swing.JTextField(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); Idade = new javax.swing.JTextField(); jLabel4 = new javax.swing.JLabel(); Telefone = new javax.swing.JTextField(); CPF = new javax.swing.JTextField(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); Endereco = new javax.swing.JTextField(); jLabel7 = new javax.swing.JLabel(); Email = new javax.swing.JTextField(); jPanel2 = new javax.swing.JPanel(); jLabel10 = new javax.swing.JLabel(); NomeEmpresa1 = new javax.swing.JTextField(); jLabel11 = new javax.swing.JLabel(); jLabel12 = new javax.swing.JLabel(); jLabel16 = new javax.swing.JLabel(); jLabel17 = new javax.swing.JLabel(); DataFinal1 = new javax.swing.JTextField(); DataInicial1 = new javax.swing.JTextField(); CargoEmpresa1 = new javax.swing.JTextField(); Atribuicoes1 = new javax.swing.JTextField(); jLabel8 = new javax.swing.JLabel(); jPanel3 = new javax.swing.JPanel(); jLabel13 = new javax.swing.JLabel(); CargoEmpresa2 = new javax.swing.JTextField(); jLabel14 = new javax.swing.JLabel(); jLabel15 = new javax.swing.JLabel(); DataInicial2 = new javax.swing.JTextField(); DataFinal2 = new javax.swing.JTextField(); jLabel19 = new javax.swing.JLabel(); jLabel18 = new javax.swing.JLabel(); NomeEmpresa2 = new javax.swing.JTextField(); Atribuicoes2 = new javax.swing.JTextField(); jPanel8 = new javax.swing.JPanel(); jLabel40 = new javax.swing.JLabel(); NomeEmpresa3 = new javax.swing.JTextField(); CargoEmpresa3 = new javax.swing.JTextField(); jLabel41 = new javax.swing.JLabel(); jLabel42 = new javax.swing.JLabel(); DataInicial3 = new javax.swing.JTextField(); DataFinal3 = new javax.swing.JTextField(); jLabel43 = new javax.swing.JLabel(); jLabel44 = new javax.swing.JLabel(); Atribuicoes3 = new javax.swing.JTextField(); jPanel10 = new javax.swing.JPanel(); jLabel50 = new javax.swing.JLabel(); NomeEmpresa4 = new javax.swing.JTextField(); CargoEmpresa4 = new javax.swing.JTextField(); jLabel51 = new javax.swing.JLabel(); jLabel52 = new javax.swing.JLabel(); DataInicial4 = new javax.swing.JTextField(); DataFinal4 = new javax.swing.JTextField(); jLabel53 = new javax.swing.JLabel(); jLabel54 = new javax.swing.JLabel(); Atribuicoes4 = new javax.swing.JTextField(); jPanel11 = new javax.swing.JPanel(); jLabel55 = new javax.swing.JLabel(); NomeCurso1 = new javax.swing.JTextField(); InstituicaoCurso1 = new javax.swing.JTextField(); jLabel56 = new javax.swing.JLabel(); NivelCurso1 = new javax.swing.JTextField(); SituacaoCurso1 = new javax.swing.JTextField(); jLabel58 = new javax.swing.JLabel(); jLabel59 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); jPanel14 = new javax.swing.JPanel(); jLabel70 = new javax.swing.JLabel(); NomeCurso2 = new javax.swing.JTextField(); InstituicaoCurso2 = new javax.swing.JTextField(); jLabel71 = new javax.swing.JLabel(); NivelCurso2 = new javax.swing.JTextField(); SituacaoCurso2 = new javax.swing.JTextField(); jLabel73 = new javax.swing.JLabel(); jLabel74 = new javax.swing.JLabel(); jPanel15 = new javax.swing.JPanel(); jLabel72 = new javax.swing.JLabel(); NomeCurso3 = new javax.swing.JTextField(); InstituicaoCurso3 = new javax.swing.JTextField(); jLabel75 = new javax.swing.JLabel(); NivelCurso3 = new javax.swing.JTextField(); SituacaoCurso3 = new javax.swing.JTextField(); jLabel76 = new javax.swing.JLabel(); jLabel77 = new javax.swing.JLabel(); jPanel16 = new javax.swing.JPanel(); jLabel78 = new javax.swing.JLabel(); NomeCurso4 = new javax.swing.JTextField(); InstituicaoCurso4 = new javax.swing.JTextField(); jLabel79 = new javax.swing.JLabel(); NivelCurso4 = new javax.swing.JTextField(); SituacaoCurso4 = new javax.swing.JTextField(); jLabel80 = new javax.swing.JLabel(); jLabel81 = new javax.swing.JLabel(); Limpar = new javax.swing.JButton(); Cadastrar = new javax.swing.JButton(); Sair = new javax.swing.JButton(); Salvar = new javax.swing.JButton(); Buscar = new javax.swing.JButton(); jScrollPane1 = new javax.swing.JScrollPane(); exibirCurriculos = new javax.swing.JTextArea(); Exibir = new javax.swing.JButton(); Sexo = new javax.swing.JComboBox<>(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jLabel1.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel1.setText("Nome Completo:"); Nome.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { NomeActionPerformed(evt); } }); jLabel2.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel2.setText("Sexo:"); jLabel3.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel3.setText("Idade:"); Idade.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { IdadeActionPerformed(evt); } }); jLabel4.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel4.setText("Telefone:"); Telefone.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TelefoneActionPerformed(evt); } }); CPF.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { CPFActionPerformed(evt); } }); jLabel5.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel5.setText("Endereço:"); jLabel6.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel6.setText("E-mail:"); Endereco.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { EnderecoActionPerformed(evt); } }); jLabel7.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel7.setText("CPF:"); Email.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { EmailActionPerformed(evt); } }); jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); jLabel10.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel10.setText("Empresa:"); NomeEmpresa1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { NomeEmpresa1ActionPerformed(evt); } }); jLabel11.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel11.setText("Cargo:"); jLabel12.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel12.setText("Atribuições:"); jLabel16.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel16.setText("Data Inicial:"); jLabel17.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel17.setText("Data Final:"); DataFinal1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { DataFinal1ActionPerformed(evt); } }); DataInicial1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { DataInicial1ActionPerformed(evt); } }); CargoEmpresa1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { CargoEmpresa1ActionPerformed(evt); } }); Atribuicoes1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Atribuicoes1ActionPerformed(evt); } }); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jLabel12) .addGap(0, 0, Short.MAX_VALUE)) .addGroup(jPanel2Layout.createSequentialGroup() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jLabel11) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(CargoEmpresa1, javax.swing.GroupLayout.PREFERRED_SIZE, 242, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jLabel10) .addGap(18, 18, 18) .addComponent(NomeEmpresa1, javax.swing.GroupLayout.PREFERRED_SIZE, 242, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 64, Short.MAX_VALUE) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup() .addComponent(jLabel17) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(DataFinal1, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jLabel16) .addGap(18, 18, 18) .addComponent(DataInicial1, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addComponent(Atribuicoes1)) .addContainerGap()) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(jPanel2Layout.createSequentialGroup() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(NomeEmpresa1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel10)) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addGap(26, 26, 26) .addComponent(jLabel11)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(CargoEmpresa1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addGroup(jPanel2Layout.createSequentialGroup() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(DataInicial1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel16)) .addGap(18, 18, 18) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(DataFinal1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel17)))) .addGap(18, 18, 18) .addComponent(jLabel12) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(Atribuicoes1, javax.swing.GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE) .addContainerGap()) ); jLabel8.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel8.setText("Experiências Profissionais:"); jPanel3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); jLabel13.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel13.setText("Empresa:"); CargoEmpresa2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { CargoEmpresa2ActionPerformed(evt); } }); jLabel14.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel14.setText("Cargo:"); jLabel15.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel15.setText("Atribuições:"); DataInicial2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { DataInicial2ActionPerformed(evt); } }); DataFinal2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { DataFinal2ActionPerformed(evt); } }); jLabel19.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel19.setText("Data Final:"); jLabel18.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel18.setText("Data Inicial:"); NomeEmpresa2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { NomeEmpresa2ActionPerformed(evt); } }); Atribuicoes2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Atribuicoes2ActionPerformed(evt); } }); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addComponent(jLabel15) .addGap(0, 0, Short.MAX_VALUE)) .addGroup(jPanel3Layout.createSequentialGroup() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(jPanel3Layout.createSequentialGroup() .addComponent(jLabel14) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(CargoEmpresa2, javax.swing.GroupLayout.PREFERRED_SIZE, 242, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel3Layout.createSequentialGroup() .addComponent(jLabel13) .addGap(18, 18, 18) .addComponent(NomeEmpresa2, javax.swing.GroupLayout.PREFERRED_SIZE, 242, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel3Layout.createSequentialGroup() .addComponent(jLabel19) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(DataFinal2, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel3Layout.createSequentialGroup() .addComponent(jLabel18) .addGap(18, 18, 18) .addComponent(DataInicial2, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE))))) .addContainerGap()) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap() .addComponent(Atribuicoes2) .addContainerGap())) ); jPanel3Layout.setVerticalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel3Layout.createSequentialGroup() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel13) .addComponent(NomeEmpresa2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(CargoEmpresa2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel14))) .addGroup(jPanel3Layout.createSequentialGroup() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(DataInicial2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel18)) .addGap(18, 18, 18) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(DataFinal2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel19)))) .addGap(18, 18, 18) .addComponent(jLabel15) .addContainerGap(214, Short.MAX_VALUE)) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addGap(130, 130, 130) .addComponent(Atribuicoes2, javax.swing.GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE) .addGap(21, 21, 21))) ); jPanel8.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); jLabel40.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel40.setText("Empresa:"); NomeEmpresa3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { NomeEmpresa3ActionPerformed(evt); } }); CargoEmpresa3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { CargoEmpresa3ActionPerformed(evt); } }); jLabel41.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel41.setText("Cargo:"); jLabel42.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel42.setText("Atribuições:"); DataInicial3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { DataInicial3ActionPerformed(evt); } }); DataFinal3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { DataFinal3ActionPerformed(evt); } }); jLabel43.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel43.setText("Data Final:"); jLabel44.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel44.setText("Data Inicial:"); Atribuicoes3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Atribuicoes3ActionPerformed(evt); } }); javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8); jPanel8.setLayout(jPanel8Layout); jPanel8Layout.setHorizontalGroup( jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel8Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel8Layout.createSequentialGroup() .addComponent(jLabel42) .addGap(0, 0, Short.MAX_VALUE)) .addGroup(jPanel8Layout.createSequentialGroup() .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(jPanel8Layout.createSequentialGroup() .addComponent(jLabel41) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(CargoEmpresa3, javax.swing.GroupLayout.PREFERRED_SIZE, 242, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel8Layout.createSequentialGroup() .addComponent(jLabel40) .addGap(18, 18, 18) .addComponent(NomeEmpresa3, javax.swing.GroupLayout.PREFERRED_SIZE, 242, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel8Layout.createSequentialGroup() .addComponent(jLabel43) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(DataFinal3, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel8Layout.createSequentialGroup() .addComponent(jLabel44) .addGap(18, 18, 18) .addComponent(DataInicial3, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addComponent(Atribuicoes3)) .addContainerGap()) ); jPanel8Layout.setVerticalGroup( jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel8Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel8Layout.createSequentialGroup() .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(NomeEmpresa3, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel40)) .addGap(18, 18, 18) .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(CargoEmpresa3, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel41))) .addGroup(jPanel8Layout.createSequentialGroup() .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(DataInicial3, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel44)) .addGap(18, 18, 18) .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(DataFinal3, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel43)))) .addGap(18, 18, 18) .addComponent(jLabel42) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(Atribuicoes3, javax.swing.GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE) .addGap(16, 16, 16)) ); jPanel10.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); jLabel50.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel50.setText("Empresa:"); NomeEmpresa4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { NomeEmpresa4ActionPerformed(evt); } }); CargoEmpresa4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { CargoEmpresa4ActionPerformed(evt); } }); jLabel51.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel51.setText("Cargo:"); jLabel52.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel52.setText("Atribuições:"); DataInicial4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { DataInicial4ActionPerformed(evt); } }); DataFinal4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { DataFinal4ActionPerformed(evt); } }); jLabel53.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel53.setText("Data Final:"); jLabel54.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel54.setText("Data Inicial:"); Atribuicoes4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Atribuicoes4ActionPerformed(evt); } }); javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10); jPanel10.setLayout(jPanel10Layout); jPanel10Layout.setHorizontalGroup( jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel10Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel10Layout.createSequentialGroup() .addComponent(jLabel52) .addGap(0, 0, Short.MAX_VALUE)) .addGroup(jPanel10Layout.createSequentialGroup() .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(jPanel10Layout.createSequentialGroup() .addComponent(jLabel51) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(CargoEmpresa4, javax.swing.GroupLayout.PREFERRED_SIZE, 242, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel10Layout.createSequentialGroup() .addComponent(jLabel50) .addGap(18, 18, 18) .addComponent(NomeEmpresa4, javax.swing.GroupLayout.PREFERRED_SIZE, 242, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(0, 0, Short.MAX_VALUE) .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel10Layout.createSequentialGroup() .addComponent(jLabel53) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(DataFinal4, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel10Layout.createSequentialGroup() .addComponent(jLabel54) .addGap(18, 18, 18) .addComponent(DataInicial4, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addComponent(Atribuicoes4)) .addContainerGap()) ); jPanel10Layout.setVerticalGroup( jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel10Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel10Layout.createSequentialGroup() .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(NomeEmpresa4, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel50)) .addGap(18, 18, 18) .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(CargoEmpresa4, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel51))) .addGroup(jPanel10Layout.createSequentialGroup() .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(DataInicial4, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel54)) .addGap(18, 18, 18) .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(DataFinal4, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel53)))) .addGap(18, 18, 18) .addComponent(jLabel52) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(Atribuicoes4, javax.swing.GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE) .addContainerGap()) ); jPanel11.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); jLabel55.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel55.setText("Nome do Curso:"); NomeCurso1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { NomeCurso1ActionPerformed(evt); } }); InstituicaoCurso1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { InstituicaoCurso1ActionPerformed(evt); } }); jLabel56.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel56.setText("Instituição"); NivelCurso1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { NivelCurso1ActionPerformed(evt); } }); SituacaoCurso1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { SituacaoCurso1ActionPerformed(evt); } }); jLabel58.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel58.setText("Situação:"); jLabel59.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel59.setText("Nivel:"); javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11); jPanel11.setLayout(jPanel11Layout); jPanel11Layout.setHorizontalGroup( jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel11Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(jPanel11Layout.createSequentialGroup() .addComponent(jLabel56) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(InstituicaoCurso1, javax.swing.GroupLayout.PREFERRED_SIZE, 242, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel11Layout.createSequentialGroup() .addComponent(jLabel55) .addGap(18, 18, 18) .addComponent(NomeCurso1, javax.swing.GroupLayout.PREFERRED_SIZE, 242, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(18, 18, 18) .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel11Layout.createSequentialGroup() .addComponent(jLabel58) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(SituacaoCurso1, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel11Layout.createSequentialGroup() .addComponent(jLabel59) .addGap(18, 18, 18) .addComponent(NivelCurso1, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap()) ); jPanel11Layout.setVerticalGroup( jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel11Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel11Layout.createSequentialGroup() .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(NomeCurso1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel55)) .addGap(18, 18, 18) .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(InstituicaoCurso1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel56))) .addGroup(jPanel11Layout.createSequentialGroup() .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(NivelCurso1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel59)) .addGap(18, 18, 18) .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(SituacaoCurso1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel58)))) .addContainerGap(51, Short.MAX_VALUE)) ); jLabel9.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel9.setText("Formações:"); jPanel14.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); jLabel70.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel70.setText("Nome do Curso:"); NomeCurso2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { NomeCurso2ActionPerformed(evt); } }); InstituicaoCurso2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { InstituicaoCurso2ActionPerformed(evt); } }); jLabel71.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel71.setText("Instituição"); NivelCurso2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { NivelCurso2ActionPerformed(evt); } }); SituacaoCurso2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { SituacaoCurso2ActionPerformed(evt); } }); jLabel73.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel73.setText("Situação:"); jLabel74.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel74.setText("Nivel:"); javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14); jPanel14.setLayout(jPanel14Layout); jPanel14Layout.setHorizontalGroup( jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel14Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(jPanel14Layout.createSequentialGroup() .addComponent(jLabel71) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(InstituicaoCurso2, javax.swing.GroupLayout.PREFERRED_SIZE, 242, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel14Layout.createSequentialGroup() .addComponent(jLabel70) .addGap(18, 18, 18) .addComponent(NomeCurso2, javax.swing.GroupLayout.PREFERRED_SIZE, 242, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(18, 18, 18) .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel14Layout.createSequentialGroup() .addComponent(jLabel73) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(SituacaoCurso2, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel14Layout.createSequentialGroup() .addComponent(jLabel74) .addGap(18, 18, 18) .addComponent(NivelCurso2, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap()) ); jPanel14Layout.setVerticalGroup( jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel14Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel14Layout.createSequentialGroup() .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(NomeCurso2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel70)) .addGap(18, 18, 18) .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(InstituicaoCurso2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel71))) .addGroup(jPanel14Layout.createSequentialGroup() .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(NivelCurso2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel74)) .addGap(18, 18, 18) .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(SituacaoCurso2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel73)))) .addContainerGap(51, Short.MAX_VALUE)) ); jPanel15.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); jLabel72.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel72.setText("Nome do Curso:"); NomeCurso3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { NomeCurso3ActionPerformed(evt); } }); InstituicaoCurso3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { InstituicaoCurso3ActionPerformed(evt); } }); jLabel75.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel75.setText("Instituição"); NivelCurso3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { NivelCurso3ActionPerformed(evt); } }); SituacaoCurso3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { SituacaoCurso3ActionPerformed(evt); } }); jLabel76.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel76.setText("Situação:"); jLabel77.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel77.setText("Nivel:"); javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15); jPanel15.setLayout(jPanel15Layout); jPanel15Layout.setHorizontalGroup( jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel15Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(jPanel15Layout.createSequentialGroup() .addComponent(jLabel75) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(InstituicaoCurso3, javax.swing.GroupLayout.PREFERRED_SIZE, 242, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel15Layout.createSequentialGroup() .addComponent(jLabel72) .addGap(18, 18, 18) .addComponent(NomeCurso3, javax.swing.GroupLayout.PREFERRED_SIZE, 242, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(18, 18, 18) .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel15Layout.createSequentialGroup() .addComponent(jLabel76) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 26, Short.MAX_VALUE) .addComponent(SituacaoCurso3, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel15Layout.createSequentialGroup() .addComponent(jLabel77) .addGap(18, 18, 18) .addComponent(NivelCurso3, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap()) ); jPanel15Layout.setVerticalGroup( jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel15Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel15Layout.createSequentialGroup() .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(NomeCurso3, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel72)) .addGap(18, 18, 18) .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(InstituicaoCurso3, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel75))) .addGroup(jPanel15Layout.createSequentialGroup() .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(NivelCurso3, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel77)) .addGap(18, 18, 18) .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(SituacaoCurso3, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel76)))) .addContainerGap(51, Short.MAX_VALUE)) ); jPanel16.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); jLabel78.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel78.setText("Nome do Curso:"); NomeCurso4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { NomeCurso4ActionPerformed(evt); } }); InstituicaoCurso4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { InstituicaoCurso4ActionPerformed(evt); } }); jLabel79.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel79.setText("Instituição"); NivelCurso4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { NivelCurso4ActionPerformed(evt); } }); SituacaoCurso4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { SituacaoCurso4ActionPerformed(evt); } }); jLabel80.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel80.setText("Situação:"); jLabel81.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N jLabel81.setText("Nivel:"); javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16); jPanel16.setLayout(jPanel16Layout); jPanel16Layout.setHorizontalGroup( jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel16Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(jPanel16Layout.createSequentialGroup() .addComponent(jLabel79) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(InstituicaoCurso4, javax.swing.GroupLayout.PREFERRED_SIZE, 242, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel16Layout.createSequentialGroup() .addComponent(jLabel78) .addGap(18, 18, 18) .addComponent(NomeCurso4, javax.swing.GroupLayout.PREFERRED_SIZE, 242, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(18, 18, 18) .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel16Layout.createSequentialGroup() .addComponent(jLabel80) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(SituacaoCurso4, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel16Layout.createSequentialGroup() .addComponent(jLabel81) .addGap(18, 18, 18) .addComponent(NivelCurso4, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap()) ); jPanel16Layout.setVerticalGroup( jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel16Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel16Layout.createSequentialGroup() .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(NomeCurso4, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel78)) .addGap(18, 18, 18) .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(InstituicaoCurso4, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel79))) .addGroup(jPanel16Layout.createSequentialGroup() .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(NivelCurso4, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel81)) .addGap(18, 18, 18) .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(SituacaoCurso4, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel80)))) .addContainerGap(51, Short.MAX_VALUE)) ); Limpar.setFont(new java.awt.Font("Arial", 1, 24)); // NOI18N Limpar.setText("Limpar"); Limpar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { LimparActionPerformed(evt); } }); Cadastrar.setFont(new java.awt.Font("Arial", 1, 24)); // NOI18N Cadastrar.setText("Cadastrar"); Cadastrar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { CadastrarActionPerformed(evt); } }); Sair.setFont(new java.awt.Font("Arial", 1, 24)); // NOI18N Sair.setText("Sair"); Sair.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { SairActionPerformed(evt); } }); Salvar.setFont(new java.awt.Font("Arial", 1, 24)); // NOI18N Salvar.setText("Salvar"); Salvar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { SalvarActionPerformed(evt); } }); Buscar.setFont(new java.awt.Font("Arial", 1, 24)); // NOI18N Buscar.setText("Buscar Profissional"); Buscar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { BuscarActionPerformed(evt); } }); exibirCurriculos.setColumns(20); exibirCurriculos.setRows(5); jScrollPane1.setViewportView(exibirCurriculos); Exibir.setFont(new java.awt.Font("Arial", 1, 24)); // NOI18N Exibir.setText("Exibir"); Exibir.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ExibirActionPerformed(evt); } }); Sexo.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N Sexo.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { SexoActionPerformed(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(21, 21, 21) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jLabel2) .addGap(18, 18, 18) .addComponent(Sexo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jLabel1) .addComponent(Nome, javax.swing.GroupLayout.PREFERRED_SIZE, 736, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jLabel3) .addGap(18, 18, 18) .addComponent(Idade, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(34, 34, 34) .addComponent(jLabel4) .addGap(18, 18, 18) .addComponent(Telefone, javax.swing.GroupLayout.PREFERRED_SIZE, 417, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addComponent(jLabel7) .addGap(18, 18, 18) .addComponent(CPF, javax.swing.GroupLayout.PREFERRED_SIZE, 257, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(466, 466, 466)))) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(Endereco, javax.swing.GroupLayout.PREFERRED_SIZE, 723, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel5) .addComponent(jLabel6))) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addComponent(Email, javax.swing.GroupLayout.PREFERRED_SIZE, 723, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 807, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel8) .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(10, 10, 10)) .addComponent(jPanel16, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addComponent(jLabel9) .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(Buscar) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(Salvar) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(Sair)) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(Exibir) .addGap(18, 18, 18) .addComponent(Cadastrar) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(Limpar))))) .addContainerGap(191, Short.MAX_VALUE)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addGap(55, 55, 55) .addComponent(jLabel1) .addGap(18, 18, 18) .addComponent(Nome, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(28, 28, 28) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2) .addComponent(Sexo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(75, 75, 75) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3) .addComponent(Idade, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel4) .addComponent(Telefone, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(26, 26, 26) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel7) .addComponent(CPF, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(28, 28, 28) .addComponent(jLabel5) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(Endereco, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(30, 30, 30) .addComponent(jLabel6) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(Email, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(174, 174, 174) .addComponent(jLabel8) .addGap(27, 27, 27) .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(jLabel9) .addGap(18, 18, 18) .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(26, 26, 26) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(Limpar) .addComponent(Cadastrar) .addComponent(Exibir)) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(Sair) .addComponent(Salvar) .addComponent(Buscar)) .addGap(143, 143, 143) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 430, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(151, Short.MAX_VALUE)) ); jScrollPane8.setViewportView(jPanel1); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 834, javax.swing.GroupLayout.PREFERRED_SIZE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane8, javax.swing.GroupLayout.DEFAULT_SIZE, 3690, Short.MAX_VALUE) ); pack(); }// </editor-fold> private void NomeActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void IdadeActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void TelefoneActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void CPFActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void EnderecoActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void EmailActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void NomeEmpresa1ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void NomeEmpresa2ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void DataFinal1ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void DataInicial1ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void CargoEmpresa1ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void CargoEmpresa2ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void DataInicial2ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void DataFinal2ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void NomeEmpresa3ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void CargoEmpresa3ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void DataInicial3ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void DataFinal3ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void NomeEmpresa4ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void CargoEmpresa4ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void DataInicial4ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void DataFinal4ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void NomeCurso1ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void InstituicaoCurso1ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void NivelCurso1ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void SituacaoCurso1ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void NomeCurso2ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void InstituicaoCurso2ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void NivelCurso2ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void SituacaoCurso2ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void NomeCurso3ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void InstituicaoCurso3ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void NivelCurso3ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void SituacaoCurso3ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void NomeCurso4ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void InstituicaoCurso4ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void NivelCurso4ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void SituacaoCurso4ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void LimparActionPerformed(java.awt.event.ActionEvent evt) { //limpa todos os campos da interface NomeEmpresa1.setText(" "); CargoEmpresa1.setText(" "); DataInicial1.setText(" "); DataFinal1.setText(" "); Atribuicoes1.setText(" "); NomeEmpresa2.setText(" "); CargoEmpresa2.setText(" "); DataInicial2.setText(" "); DataFinal2.setText(" "); Atribuicoes2.setText(" "); NomeEmpresa3.setText(" "); CargoEmpresa3.setText(" "); DataInicial3.setText(" "); DataFinal3.setText(" "); Atribuicoes3.setText(" "); NomeEmpresa4.setText(" "); CargoEmpresa4.setText(" "); DataInicial4.setText(" "); DataFinal4.setText(" "); Atribuicoes4.setText(" "); NomeCurso1.setText(" "); InstituicaoCurso1.setText(" "); NivelCurso1.setText(" "); SituacaoCurso1.setText(" "); NomeCurso2.setText(" "); InstituicaoCurso2.setText(" "); NivelCurso2.setText(" "); SituacaoCurso2.setText(" "); NomeCurso3.setText(" "); InstituicaoCurso3.setText(" "); NivelCurso3.setText(" "); SituacaoCurso3.setText(" "); NomeCurso4.setText(" "); InstituicaoCurso4.setText(" "); NivelCurso4.setText(" "); SituacaoCurso4.setText(" "); Nome.setText(" "); Idade.setText(" "); Telefone.setText(" "); CPF.setText(" "); Endereco.setText(" "); Email.setText(" "); } private void CadastrarActionPerformed(java.awt.event.ActionEvent evt) { /*********************************************************************** *Adiciona valores aos atributos de cada experiencia no vetor *Adiciona valores aos atributos de cada formacao no vetor */ experiencias[0] = new Experiencias_Profissionais(); experiencias[1] = new Experiencias_Profissionais(); experiencias[2] = new Experiencias_Profissionais(); experiencias[3] = new Experiencias_Profissionais(); experiencias[0].setEmpresa(NomeEmpresa1.getText()); experiencias[0].setCargo(CargoEmpresa1.getText()); experiencias[0].setDataInicio(DataInicial1.getText()); experiencias[0].setDataFinal(DataFinal1.getText()); experiencias[0].setAtribuicoes(Atribuicoes1.getText()); experiencias[1].setEmpresa(NomeEmpresa2.getText()); experiencias[1].setCargo(CargoEmpresa2.getText()); experiencias[1].setDataInicio(DataInicial2.getText()); experiencias[1].setDataFinal(DataFinal2.getText()); experiencias[1].setAtribuicoes(Atribuicoes2.getText()); experiencias[2].setEmpresa(NomeEmpresa3.getText()); experiencias[2].setCargo(CargoEmpresa3.getText()); experiencias[2].setDataInicio(DataInicial3.getText()); experiencias[2].setDataFinal(DataFinal3.getText()); experiencias[2].setAtribuicoes(Atribuicoes3.getText()); experiencias[3].setEmpresa(NomeEmpresa4.getText()); experiencias[3].setCargo(CargoEmpresa4.getText()); experiencias[3].setDataInicio(DataInicial4.getText()); experiencias[3].setDataFinal(DataFinal4.getText()); experiencias[3].setAtribuicoes(Atribuicoes4.getText()); formacoes[0] = new Formacao(); formacoes[1] = new Formacao(); formacoes[2] = new Formacao(); formacoes[3] = new Formacao(); formacoes[0].setNomeCurso(NomeCurso1.getText()); formacoes[0].setInstituicao(InstituicaoCurso1.getText()); formacoes[0].setNivel(NivelCurso1.getText()); formacoes[0].setSituacao(SituacaoCurso1.getText()); formacoes[1].setNomeCurso(NomeCurso2.getText()); formacoes[1].setInstituicao(InstituicaoCurso2.getText()); formacoes[1].setNivel(NivelCurso2.getText()); formacoes[1].setSituacao(SituacaoCurso2.getText()); formacoes[2].setNomeCurso(NomeCurso3.getText()); formacoes[2].setInstituicao(InstituicaoCurso3.getText()); formacoes[2].setNivel(NivelCurso3.getText()); formacoes[2].setSituacao(SituacaoCurso3.getText()); formacoes[3].setNomeCurso(NomeCurso4.getText()); formacoes[3].setInstituicao(InstituicaoCurso4.getText()); formacoes[3].setNivel(NivelCurso4.getText()); formacoes[3].setSituacao(SituacaoCurso4.getText()); for(int i =0;i<adicionado;i++){ listaCurriculos.inserirNaFrente(new Curriculo()); } for( int i = 0;i<listaCurriculos.tamanhoLista;i++){ listaCurriculos.get(i).setNome(Nome.getText()); listaCurriculos.get(i).setSexo(sexo); listaCurriculos.get(i).setIdade(Integer.parseInt(Idade.getText())); listaCurriculos.get(i).setTelefone(Telefone.getText()); listaCurriculos.get(i).setCpf(CPF.getText()); listaCurriculos.get(i).setEndereco(Endereco.getText()); listaCurriculos.get(i).setEmail(Email.getText()); listaCurriculos.get(i).adicionarExperiencia(experiencias); listaCurriculos.get(i).adicionarFormacao(formacoes); } adicionado++; } private void SairActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void Atribuicoes3ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void Atribuicoes1ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void Atribuicoes2ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void Atribuicoes4ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void SalvarActionPerformed(java.awt.event.ActionEvent evt) { for(int i =0;i<listaCurriculos.tamanhoLista;i++){ System.out.println(listaCurriculos.get(i)); } } private void BuscarActionPerformed(java.awt.event.ActionEvent evt) { buscador = new Buscador(); buscador.setLocationRelativeTo(null); buscador.setVisible(true); } private void ExibirActionPerformed(java.awt.event.ActionEvent evt) { System.out.println(listaCurriculos.tamanhoLista); listaCurriculos.mostrar(); String[]dadosCurriculos = new String[listaCurriculos.tamanhoLista]; for(int i =0;i<listaCurriculos.tamanhoLista;i++){ dadosCurriculos[i] = listaCurriculos.get(i).getNome() +"," +listaCurriculos.get(i).getAreaAtuacao()+","+listaCurriculos.get(i).getCpf()+","+listaCurriculos.get(i).getEmail()+ ","+ listaCurriculos.get(i).getTelefone()+"," +listaCurriculos.get(i).getEndereco()+","+listaCurriculos.get(i).getSexo()+","+listaCurriculos.get(i).getSexo()+","+listaCurriculos.get(i).getComunicao() + "," + listaCurriculos.get(i).getExperiencia().getAtribuicoes(); System.out.println(dadosCurriculos[i]); } for(int i =0;i<dadosCurriculos.length;i++){ this.exibirCurriculos.setText(this.exibirCurriculos.getText() + "\n" + listaCurriculos.get(i)); } } private void SexoActionPerformed(java.awt.event.ActionEvent evt) { sexo = Sexo.getSelectedItem().toString(); } /** * @param args the command line arguments */ public static void main(String args[]) { /* Set the Nimbus look and fee /* Create and display the fol */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html */ try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(Interface_Cadastro.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(Interface_Cadastro.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(Interface_Cadastro.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(Interface_Cadastro.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } EventQueue.invokeLater(new Runnable() { @Override public void run() { new Interface_Cadastro().setVisible(true); } }); // java.awt.EventQueue.invokeLater(() -> { // new Interface_Cadastro().setVisible(true); // // }); } // Variables declaration - do not modify private javax.swing.JTextField Atribuicoes1; private javax.swing.JTextField Atribuicoes2; private javax.swing.JTextField Atribuicoes3; private javax.swing.JTextField Atribuicoes4; private javax.swing.JButton Buscar; private javax.swing.JTextField CPF; private javax.swing.JButton Cadastrar; private javax.swing.JTextField CargoEmpresa1; private javax.swing.JTextField CargoEmpresa2; private javax.swing.JTextField CargoEmpresa3; private javax.swing.JTextField CargoEmpresa4; private javax.swing.JTextField DataFinal1; private javax.swing.JTextField DataFinal2; private javax.swing.JTextField DataFinal3; private javax.swing.JTextField DataFinal4; private javax.swing.JTextField DataInicial1; private javax.swing.JTextField DataInicial2; private javax.swing.JTextField DataInicial3; private javax.swing.JTextField DataInicial4; private javax.swing.JTextField Email; private javax.swing.JTextField Endereco; private javax.swing.JButton Exibir; private javax.swing.JTextField Idade; private javax.swing.JTextField InstituicaoCurso1; private javax.swing.JTextField InstituicaoCurso2; private javax.swing.JTextField InstituicaoCurso3; private javax.swing.JTextField InstituicaoCurso4; private javax.swing.JButton Limpar; private javax.swing.JTextField NivelCurso1; private javax.swing.JTextField NivelCurso2; private javax.swing.JTextField NivelCurso3; private javax.swing.JTextField NivelCurso4; private javax.swing.JTextField Nome; private javax.swing.JTextField NomeCurso1; private javax.swing.JTextField NomeCurso2; private javax.swing.JTextField NomeCurso3; private javax.swing.JTextField NomeCurso4; private javax.swing.JTextField NomeEmpresa1; private javax.swing.JTextField NomeEmpresa2; private javax.swing.JTextField NomeEmpresa3; private javax.swing.JTextField NomeEmpresa4; private javax.swing.JButton Sair; private javax.swing.JButton Salvar; private javax.swing.JComboBox<String> Sexo; private javax.swing.JTextField SituacaoCurso1; private javax.swing.JTextField SituacaoCurso2; private javax.swing.JTextField SituacaoCurso3; private javax.swing.JTextField SituacaoCurso4; private javax.swing.JTextField Telefone; private javax.swing.JTextArea exibirCurriculos; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel10; private javax.swing.JLabel jLabel11; private javax.swing.JLabel jLabel12; private javax.swing.JLabel jLabel13; private javax.swing.JLabel jLabel14; private javax.swing.JLabel jLabel15; private javax.swing.JLabel jLabel16; private javax.swing.JLabel jLabel17; private javax.swing.JLabel jLabel18; private javax.swing.JLabel jLabel19; private javax.swing.JLabel jLabel2; private javax.swing.JLabel jLabel3; private javax.swing.JLabel jLabel4; private javax.swing.JLabel jLabel40; private javax.swing.JLabel jLabel41; private javax.swing.JLabel jLabel42; private javax.swing.JLabel jLabel43; private javax.swing.JLabel jLabel44; private javax.swing.JLabel jLabel5; private javax.swing.JLabel jLabel50; private javax.swing.JLabel jLabel51; private javax.swing.JLabel jLabel52; private javax.swing.JLabel jLabel53; private javax.swing.JLabel jLabel54; private javax.swing.JLabel jLabel55; private javax.swing.JLabel jLabel56; private javax.swing.JLabel jLabel58; private javax.swing.JLabel jLabel59; private javax.swing.JLabel jLabel6; private javax.swing.JLabel jLabel7; private javax.swing.JLabel jLabel70; private javax.swing.JLabel jLabel71; private javax.swing.JLabel jLabel72; private javax.swing.JLabel jLabel73; private javax.swing.JLabel jLabel74; private javax.swing.JLabel jLabel75; private javax.swing.JLabel jLabel76; private javax.swing.JLabel jLabel77; private javax.swing.JLabel jLabel78; private javax.swing.JLabel jLabel79; private javax.swing.JLabel jLabel8; private javax.swing.JLabel jLabel80; private javax.swing.JLabel jLabel81; private javax.swing.JLabel jLabel9; private javax.swing.JPanel jPanel1; private javax.swing.JPanel jPanel10; private javax.swing.JPanel jPanel11; private javax.swing.JPanel jPanel14; private javax.swing.JPanel jPanel15; private javax.swing.JPanel jPanel16; private javax.swing.JPanel jPanel2; private javax.swing.JPanel jPanel3; private javax.swing.JPanel jPanel8; private javax.swing.JScrollPane jScrollPane1; private javax.swing.JScrollPane jScrollPane8; // End of variables declaration } //Codigo da Lista public class Lista<Curriculo> { protected ListaNo<Curriculo> primeiroNo; protected ListaNo<Curriculo> ultimoNo; protected String nome; protected int tamanhoLista; public Lista(){ this.nome="lista"; } public Lista(String nomeLista){ nome = nomeLista; primeiroNo = ultimoNo = null; } void inserirNaFrente(Curriculo item){ if(estaVazia()){ primeiroNo = ultimoNo = new ListaNo<Curriculo> (item); } else{ primeiroNo = new ListaNo<Curriculo> (item,primeiroNo); } tamanhoLista++; } void inserirAtras(Curriculo item){ if(estaVazia()){ primeiroNo = ultimoNo = new ListaNo<Curriculo> (item); } else{ ultimoNo = ultimoNo.proximoNo = new ListaNo<Curriculo> (item); } tamanhoLista++; } public Curriculo removerDaFrente(){ if(estaVazia()){ return null; } else{ Curriculo itemRemovido = primeiroNo.dado; if(primeiroNo == ultimoNo){ primeiroNo = ultimoNo = null; } else{ primeiroNo = primeiroNo.proximoNo; } tamanhoLista--; return itemRemovido; } } public Curriculo removerAtras(){ if(estaVazia()){ return null; } else{ Curriculo itemRemovido = ultimoNo.dado; if(primeiroNo == ultimoNo){ primeiroNo = ultimoNo = null; } else{ ListaNo<Curriculo> atual = primeiroNo; while(atual.proximoNo != ultimoNo){ atual = atual.proximoNo; } ultimoNo = atual; atual.proximoNo = null; tamanhoLista--; } return itemRemovido; } } public boolean estaVazia(){ return primeiroNo == null; } public int tamanho(){ return this.tamanhoLista; } public Curriculo get(Curriculo item){ if(!estaVazia()){ ListaNo<Curriculo> atual = primeiroNo; while(atual.proximoNo.getDado()!= item){ atual = atual.proximoNo; } return atual.proximoNo.getDado(); } return null; } public int indiceDo(Curriculo object) throws NoSuchElementException { int indice = 0; if (!estaVazia()) { ListaNo<Curriculo> atual = primeiroNo; while (atual.getDado()!= object) { atual = atual.proximoNo; indice++; } } return indice; } public Curriculo get(int indice) throws NullPointerException { if (!estaVazia()) { ListaNo<Curriculo> atual = primeiroNo; for (int i = 0; i < indice; i++) { atual = atual.proximoNo; } return atual.getDado(); } return null; } void mostrar(){ if(estaVazia()){ System.out.println("A lista " + nome + " esta vazia"); return; } System.out.println("A " + nome + " e:"); ListaNo <Curriculo> atual = primeiroNo; while(atual!= null){ System.out.println(atual.dado); atual = atual.proximoNo; } System.out.println(); } void mostrarPrimeiro(){ if(estaVazia()){ System.out.println("A lista " + nome + " esta vazia"); return; } System.out.println("A " + nome + " e:"); System.out.println(primeiroNo.dado); } } //Codigo ListaNo public class ListaNo<T> { T dado; ListaNo <T> proximoNo; ListaNo(T objeto){ this(objeto,null); } ListaNo(T objeto, ListaNo<T>No){ dado = objeto; proximoNo = No; } T getDado(){ return dado; } ListaNo<T> getProximo(){ return proximoNo; } } //Codigo Curriculo public class Curriculo { private String nome; private String cpf; private String endereco; private String email; private String areaAtuacao; private String comunicacao; private String telefone; private String sexo; private int idade; private Formacao[] formacoes = new Formacao[4]; private Experiencias_Profissionais[] experiencias = new Experiencias_Profissionais[4]; int i =0; public void adicionarFormacao(Formacao [] formacoes){ this.formacoes = formacoes; } public Formacao getFormacoes(){ for(int i =0;i<formacoes.length;i++){ return this.formacoes[i]; } return null; } public void adicionarExperiencia(Experiencias_Profissionais [] experiencias){ this.experiencias = experiencias; } public Experiencias_Profissionais getExperiencia(){ for(int i =0;i<experiencias.length;i++){ return this.experiencias[i]; } return null; } public void setNome(String nome){ this.nome = nome; } public String getNome(){ return this.nome; } public void setEndereco(String endereco){ this.endereco = endereco; } public String getEndereco(){ return this.endereco; } public void setEmail(String email){ this.email = email; } public String getEmail(){ return this.email; } public void setAreaAtuacao(String areaAtuacao){ this.areaAtuacao = areaAtuacao; } public String getAreaAtuacao(){ return this.areaAtuacao; } public void setComunicao(String comunicacao){ this.comunicacao = comunicacao; } public String getComunicao(){ return this.comunicacao; } public void setTelefone(String telefone){ this.telefone = telefone; } public String getTelefone(){ return this.telefone; } public void setIdade(int idade){ this.idade = idade; } public int getIdade(){ return this.idade; } public void setSexo(String sexo){ this.sexo = sexo; } public String getSexo(){ return this.sexo; } public void setCpf(String cpf){ this.cpf = cpf; } public String getCpf(){ return this.cpf; } @Override public String toString() { return "curriculo{" + "nome=" + this.nome + ", Idade =" + this.idade + ",sexo =" + this.sexo + ",telefone=" + this.telefone + ",cpf=" + this.cpf + ",email=" + this.email + ",area=" + this.areaAtuacao + ",comunicacao=" + this.comunicacao+ ",experiencias =" + this.experiencias[0]+",formacoes =" + this.formacoes[0]+ ",experiencias =" + this.experiencias[1]+",formacoes =" + this.formacoes[1]+ ",experiencias =" + this.experiencias[2]+",formacoes =" + this.formacoes[2]+ ",experiencias =" + this.experiencias[3]+",formacoes =" + this.formacoes[3]+'}'; } } //Codigo Experiencia_Profissionais public class Experiencias_Profissionais { private String empresa; private String cargo; private String atribuicoes; private String dataInicio; private String dataFinal; public void setEmpresa(String empresa){ this.empresa = empresa; } public String getEmpresa(){ return this.empresa; } public void setCargo(String cargo){ this.cargo = cargo; } public String getCargo(){ return this.cargo; } public void setAtribuicoes(String atribuicoes){ this.atribuicoes = atribuicoes; } public String getAtribuicoes(){ return this.atribuicoes; } public void setDataInicio(String dataInicio){ this.dataInicio = dataInicio; } public String getDataInicio(){ return this.dataInicio; } public void setDataFinal(String dataFinal){ this.dataFinal = dataFinal; } public String getDataFinal(){ return this.dataFinal; } public String toString() { return "experiencia{" + "empresa=" + this.empresa + ", cargo =" + this.cargo + ",atribicoes=" + this.atribuicoes + ",inicio=" + this.dataInicio+",fim=" + this.dataFinal+'}'; } } //Codigo Formacoes public class Formacao { private String nome; private String nivel; private String instituicao; private String situacao; public void setNomeCurso(String nome){ this.nome = nome; } public String getNomeCurso(){ return this.nome; } public void setNivel(String nivel){ this.nivel = nivel; } public String getNivel(){ return this.nivel; } public void setInstituicao(String instituicao){ this.instituicao = instituicao; } public String getInstituicao(){ return this.instituicao; } public void setSituacao(String situacao){ this.situacao = situacao; } public String getSituacao(){ return this.situacao; } @Override public String toString() { return "Formacao{" + "nome=" + this.nome + ", nivel =" + this.nivel + ",instituicao" + this.instituicao + ",situacao" + this.situacao+'}'; } }
  10. Ok, posso mandar o arquivo em anexo na mensagem aqui então, pois ai tu teria acesso a interface grafica adicionado 0 minutos depois Se não eu jogo o código aqui mesmo.
  11. Ok, vou mandar, se preferir mando o arquivo do projeto.
  12. Opa, valeu por responder, mas cara o problema não esta sendo ai, na verdade o problema esta sendo ai, eu fiz dessa forma pois a interface vai ter apenas 4 experiências profissionais e formações por funcionário, o que esta repetindo é a referencia para classe currículo nas posições da lista, ele esta substituindo a criada anteriormente pela atual. adicionado 11 minutos depois /*O problema esta abaixo (embora eu nao saiba onde), na insercao das referencias a listaCurriculos, a variavel "adicionado" aumenta sempre que se clica no botao "cadastrar" para aumentar o alcance do for e por conseguinte o tamanho da lista. E nas imagens eu preenchi tudo com "xxx..." pois estava com presa xD. */ for(int i =0;i<adicionado;i++){ listaCurriculos.inserirNaFrente(new Curriculo()); } for( int i = 0;i<listaCurriculos.tamanhoLista;i++){ listaCurriculos.get(i).setNome(jTextField1.getText()); listaCurriculos.get(i).setSexo(sexo); listaCurriculos.get(i).setIdade(Integer.parseInt(jTextField2.getText())); listaCurriculos.get(i).setTelefone(jTextField3.getText()); listaCurriculos.get(i).setCpf(jTextField4.getText()); listaCurriculos.get(i).setEndereco(jTextField5.getText()); listaCurriculos.get(i).setEmail(jTextField6.getText()); listaCurriculos.get(i).adicionarExperiencia(experiencias); listaCurriculos.get(i).adicionarFormacao(formacoes); } adicionado++;
  13. Boa tarde a todos, pessoal faço técnico em Desenvolvimento de Sistemas e tenho um trabalho em java em que devo criar alguma aplicação utilizando os conceitos da matéria. Resolvi então criar um sistema de cadastro de currículos , em que o usuário preenche os dados e ao clicar no botão "Cadastrar" cria uma referencia para classe currículo com os dados que o usuário digitou no formulário como valores para os seus atributos e adiciona o mesmo em uma Lista do tipo "Curriculo", para ver se os dados estavam realmente sendo inseridos conforme o planejado adicionei resolvi printar a lista, porém ela esta adicionando a mesma referência todas as vezes em que clico em "Cadastrar", e sempre substitui o ultimo adicionado na posição anterior por uma cópia sua, Por favor se puderem me ajudar ficaria grato, o trabalho é pra daqui a duas semanas public class Curriculo { private String nome; private String cpf; private String endereco; private String email; private String areaAtuacao; private String comunicacao; private String telefone; private String sexo; private int idade; private Formacao[] formacoes = new Formacao[4]; private Experiencias_Profissionais[] experiencias = new Experiencias_Profissionais[4]; int i =0; public void adicionarFormacao(Formacao [] formacoes){ this.formacoes = formacoes; } public Formacao getFormacoes(){ for(int i =0;i<formacoes.length;i++){ return this.formacoes[i]; } return null; } public void adicionarExperiencia(Experiencias_Profissionais [] experiencias){ this.experiencias = experiencias; } public Experiencias_Profissionais getExperiencia(){ for(int i =0;i<experiencias.length;i++){ return this.experiencias[i]; } return null; } public void setNome(String nome){ this.nome = nome; } public String getNome(){ return this.nome; } public void setEndereco(String endereco){ this.endereco = endereco; } public String getEndereco(){ return this.endereco; } public void setEmail(String email){ this.email = email; } public String getEmail(){ return this.email; } public void setAreaAtuacao(String areaAtuacao){ this.areaAtuacao = areaAtuacao; } public String getAreaAtuacao(){ return this.areaAtuacao; } public void setComunicao(String comunicacao){ this.comunicacao = comunicacao; } public String getComunicao(){ return this.comunicacao; } public void setTelefone(String telefone){ this.telefone = telefone; } public String getTelefone(){ return this.telefone; } public void setIdade(int idade){ this.idade = idade; } public int getIdade(){ return this.idade; } public void setSexo(String sexo){ this.sexo = sexo; } public String getSexo(){ return this.sexo; } public void setCpf(String cpf){ this.cpf = cpf; } public String getCpf(){ return this.cpf; } @Override public String toString() { return "curriculo{" + "nome=" + this.nome + ", Idade =" + this.idade + ",sexo =" + this.sexo + ",telefone=" + this.telefone + ",cpf=" + this.cpf + ",email=" + this.email + ",area=" + this.areaAtuacao + ",comunicacao=" + this.comunicacao+ ",experiencias =" + this.experiencias[0]+",formacoes =" + this.formacoes[0]+ ",experiencias =" + this.experiencias[1]+",formacoes =" + this.formacoes[1]+ ",experiencias =" + this.experiencias[2]+",formacoes =" + this.formacoes[2]+ ",experiencias =" + this.experiencias[3]+",formacoes =" + this.formacoes[3]+'}'; } } private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { //Evento do botao adicionar /*********************************************************************** *Adiciona valores aos atributos de cada experiencia no vetor *Adiciona valores aos atributos de cada formacao no vetor Cada referencia para Curriculo na lista possui um array de formacoes e um de experiencias cada um com 4 posições */ experiencias[0] = new Experiencias_Profissionais(); experiencias[1] = new Experiencias_Profissionais(); experiencias[2] = new Experiencias_Profissionais(); experiencias[3] = new Experiencias_Profissionais(); experiencias[0].setEmpresa(jTextField7.getText()); experiencias[0].setCargo(jTextField8.getText()); experiencias[0].setDataInicio(jTextField12.getText()); experiencias[0].setDataFinal(jTextField11.getText()); experiencias[0].setAtribuicoes(jTextField36.getText()); experiencias[1].setEmpresa(jTextField9.getText()); experiencias[1].setCargo(jTextField10.getText()); experiencias[1].setDataInicio(jTextField14.getText()); experiencias[1].setDataFinal(jTextField13.getText()); experiencias[1].setAtribuicoes(jTextField37.getText()); experiencias[2].setEmpresa(jTextField31.getText()); experiencias[2].setCargo(jTextField32.getText()); experiencias[2].setDataInicio(jTextField33.getText()); experiencias[2].setDataFinal(jTextField34.getText()); experiencias[2].setAtribuicoes(jTextField35.getText()); experiencias[3].setEmpresa(jTextField39.getText()); experiencias[3].setCargo(jTextField40.getText()); experiencias[3].setDataInicio(jTextField41.getText()); experiencias[3].setDataFinal(jTextField42.getText()); experiencias[3].setAtribuicoes(jTextField67.getText()); formacoes[0] = new Formacao(); formacoes[1] = new Formacao(); formacoes[2] = new Formacao(); formacoes[3] = new Formacao(); formacoes[0].setNomeCurso(jTextField43.getText()); formacoes[0].setInstituicao(jTextField44.getText()); formacoes[0].setNivel(jTextField45.getText()); formacoes[0].setSituacao(jTextField46.getText()); formacoes[1].setNomeCurso(jTextField55.getText()); formacoes[1].setInstituicao(jTextField56.getText()); formacoes[1].setNivel(jTextField57.getText()); formacoes[1].setSituacao(jTextField58.getText()); formacoes[2].setNomeCurso(jTextField59.getText()); formacoes[2].setInstituicao(jTextField60.getText()); formacoes[2].setNivel(jTextField61.getText()); formacoes[2].setSituacao(jTextField62.getText()); formacoes[3].setNomeCurso(jTextField63.getText()); formacoes[3].setInstituicao(jTextField64.getText()); formacoes[3].setNivel(jTextField65.getText()); formacoes[3].setSituacao(jTextField66.getText()); for(int i =0;i<adicionado;i++){ //Instancia uma referencia para Curriculo em cada posição da Lista listaCurriculos.inserirNaFrente(new Curriculo()); break; } for( int i = 0;i<listaCurriculos.tamanhoLista;i++){//for para setar valor aos atributos do curriculo, de acordo com dados inseridos no formulario listaCurriculos.get(i).setNome(jTextField1.getText()); listaCurriculos.get(i).setSexo(sexo); listaCurriculos.get(i).setIdade(Integer.parseInt(jTextField2.getText())); listaCurriculos.get(i).setTelefone(jTextField3.getText()); listaCurriculos.get(i).setCpf(jTextField4.getText()); listaCurriculos.get(i).setEndereco(jTextField5.getText()); listaCurriculos.get(i).setEmail(jTextField6.getText()); listaCurriculos.get(i).adicionarExperiencia(experiencias); listaCurriculos.get(i).adicionarFormacao(formacoes); } adicionado++;//Aumenta a cada click no botão Cadastrar //Na imagem abaixo eu insiro o "Luiz" //O println que criei para testar mostra o seus dados na lista. Obs: ignorem o risco vermelho Contudo depois de inserir o Arnaldo ele deveria ocupar a segunda posição da lista e não a primeira Mas ele substituiu o "Luiz" na primeira, assim que eu o adicionei
  14. Só pra corrigir, minha fonte é uma Elite 500 versão 2 processador I7 3770 3.40HZ (NÃO É O I7 3770K como havia dito)
  15. Só pra corrigir, minha fonte é uma Elite 500 versão 2 processador I7 3770 3.40HZ (NÃO É O I7 3770K como havia dito)

Sobre o Clube do Hardware

No ar desde 1996, o Clube do Hardware é uma das maiores, mais antigas e mais respeitadas publicações sobre tecnologia do Brasil. Leia mais

Direitos autorais

Não permitimos a cópia ou reprodução do conteúdo do nosso site, fórum, newsletters e redes sociais, mesmo citando-se a fonte. Leia mais

×