Problemas para fazer um CRUD no eclipse

Ola gente sou nova aqui, estou tendo muitos problemas para descobrir onde estão os erros no crud então me ajudem por favor. não to conseguindo salvar as informações no banco de dados.

package controller;

import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import javax.swing.table.DefaultTableModel;

import DAO.UsuarioDAO;
import model.Usuario;

public class usuarioController {

private UsuarioDAO usuarioDao = new UsuarioDAO();
private Usuario usuario = new Usuario();

@SuppressWarnings("rawtypes")
public boolean verificarCampos(JComboBox cbTipo, JTextField idField, JTextField nomeField, 
		JTextField telefoneField, JTextField senhaField) {

	if ((!idField.getText().equals("")) && (!nomeField.getText().equals(""))
			&& (!telefoneField.getText().equals("")) && (!senhaField.getText().equals(""))
			&& (!cbTipo.getSelectedItem().equals("Selecione"))) {

		return true;
	} else {
		JOptionPane.showMessageDialog(null, "Os campos não podem estar vazios");
		return false;
	}
}

private void ClearFields(JTextField idField, JTextField nomeField, JTextField telefoneField, JTextField senhaField) {
	idField.setText("");
	nomeField.setText("");
	telefoneField.setText("");
	senhaField.setText("");
}

@SuppressWarnings("rawtypes")
private void BloquearFields(JComboBox cbTipo, JTextField idField, JTextField nomeField, JTextField telefoneField, JTextField senhaField) {
	idField.setEditable(false);
	nomeField.setEditable(false);
	telefoneField.setEditable(false);
	senhaField.setEditable(false);
	cbTipo.setEditable(false);
}


@SuppressWarnings("rawtypes")
private void PosicionarCombobox(JComboBox cbTipo) {
	cbTipo.setSelectedItem("Selecione");
}


@SuppressWarnings("rawtypes")
public void btnSalvar(JComboBox cbTipo, JTextField idField, JTextField nomeField, JTextField telefoneField, JTextField senhaField) {

	String id = idField.getText();
	int ID = Integer.parseInt(id);
	
	usuario.setUSU_ID(ID);

	usuario.setUSU_NOME(nomeField.getText());
	
	usuario.setUSU_TEL(telefoneField.getText());

	usuario.setUSU_SENHA(senhaField.getText());

	usuario.setUSU_TIPO(cbTipo.getSelectedItem().toString());
	
	
	if (verificarCampos(cbTipo, idField, nomeField, telefoneField, senhaField) == true) {
		usuarioDao.save(usuario);
		JOptionPane.showMessageDialog(null, "Usuario " + nomeField.getText() + " inserido com sucesso!");

		ClearFields(idField, nomeField, telefoneField, senhaField);
		PosicionarCombobox(cbTipo);
	}
}


@SuppressWarnings("rawtypes")
public void btnPesquisar(JButton btnSalvar, JButton btnEditar, JComboBox cbTipo, JTextField idField, JTextField nomeField, JTextField telefoneField, JTextField senhaField) {

	usuario = usuarioDao.pesquisarUsuario(JOptionPane.showInputDialog("Informe o Nome do USUÁRIO que deseja Editar!"));

	idField.setText(Integer.toString(usuario.getUSU_ID()));
	idField.setEditable(false);

	nomeField.setText(usuario.getUSU_NOME());
	telefoneField.setText(usuario.getUSU_TEL());
	senhaField.setText(usuario.getUSU_SENHA());
	cbTipo.setSelectedItem(usuario.getUSU_TIPO());

	
	btnSalvar.setEnabled(false);
	btnEditar.setEnabled(true);
}

@SuppressWarnings("rawtypes")
public void btnEditar(JComboBox cbTipo, JTextField idField, JTextField nomeField, JTextField telefoneField, JTextField senhaField) {

	String id = idField.getText();
	
	int ID = Integer.parseInt(id);
	
	usuario.setUSU_ID(ID);

	usuario.setUSU_NOME(nomeField.getText());
	
	usuario.setUSU_TEL(telefoneField.getText());

	usuario.setUSU_SENHA(senhaField.getText());

	usuario.setUSU_TIPO(cbTipo.getSelectedItem().toString());

	usuarioDao.update(usuario);

	JOptionPane.showMessageDialog(null, "Usuário " + nomeField.getText() + " atualizado com sucesso!");
	// Bloquear
	BloquearFields(cbTipo, idField, nomeField, telefoneField, senhaField);
}

public void btnExcluir() {
	int id;
	id = Integer.parseInt(JOptionPane.showInputDialog("Informe o ID do Usuário que deseja Excluir!"));

	if (id == 0) {
		JOptionPane.showMessageDialog(null, "Não existe Usuário com esse ID! Informe um ID valido.");
		JOptionPane.showInputDialog("Informe o ID do Usuário que deseja Excluir!");
	} else {

		JOptionPane.showMessageDialog(null, "O Usuário foi excluido com sucesso!!!");
		usuarioDao.removeById(id);
	}
}


public void listarAlunos(DefaultTableModel model) {
	model.setNumRows(0);

	for (Usuario usuarios : usuarioDao.getUsuarios()) {
		model.addRow(new Object[] { usuarios.getUSU_ID(), usuarios.getUSU_NOME(), usuarios.getUSU_TEL(),  usuarios.getUSU_TIPO()});
	}
}

}

Está aparecendo algum erro ?
Envie que ficará mais fácil solucionar o seu problema

O problema é esse, não aparece erro… mais também não salva os dados…

Agora estou tendo um problema com o ComboBox.

quando tento salvar as informações da esse erro:

com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'USU_TIPO' at row 1
	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3971)
	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3909)
	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2527)
	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2680)
	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2484)
	at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1858)
	at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1197)
	at DAO.UsuarioDAO.save(UsuarioDAO.java:31)
	at controller.usuarioController.btnSalvar(usuarioController.java:74)
	at view.FrameUsuario$3.actionPerformed(FrameUsuario.java:127)
	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

Vi que conseguiu resolver o problema de salvar.
Esse ultimo erro é devido ao dado muito grande que você estar tentando salvar na coluna.
Umas dicas:

  • Não use nome de classes iniciando com letras minúsculas é uma má pratica.
  • Não utilize o DefaultTableModel.
  • onde você omitiu o erro usando o @SuppressWarnings(“rawtypes”) tente usar o JComboBox<?>.

tentei substituir o @SuppressWarnings(“rawtypes”) pelo JComboBox<?> porem da erro…
esse é o código que to usando…

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JComboBox;
import javax.swing.JPasswordField;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.event.ActionEvent;

import javax.swing.JButton;
import controller.usuarioController;
import java.awt.Color;
import java.awt.Font;
import javax.swing.SwingConstants;
import javax.swing.ImageIcon;

@SuppressWarnings(“serial”)
public class FrameUsuario extends JFrame {

private JPanel contentPane;
private JTextField nomeField;
private JPasswordField senhaField;

private usuarioController controleUsuario = new usuarioController();


private JTextField telefoneField;
private JTextField idField;



/**
 * Launch the application.
 */
public static void main(String[] args) {
	EventQueue.invokeLater(new Runnable() {
		public void run() {
			try {
				FrameUsuario frame = new FrameUsuario();
				frame.setVisible(true);

			} catch (Exception e) {
				e.printStackTrace();
			}
		}
	});
}

/**
 * Create the frame.
 */
@SuppressWarnings("unchecked")
public FrameUsuario() {
	addWindowListener(new WindowAdapter() {
		@Override
		public void windowActivated(WindowEvent arg0) {
			setResizable(false);
			setLocationRelativeTo(null);
		}
	});
	setTitle("AcadSystem");
	setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	setBounds(100, 100, 691, 371);
	contentPane = new JPanel();
	contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
	contentPane.setLayout(new BorderLayout(0, 0));
	setContentPane(contentPane);

	JPanel panel = new JPanel();
	panel.setBackground(new Color(176, 224, 230));
	panel.setForeground(Color.MAGENTA);
	contentPane.add(panel, BorderLayout.CENTER);
	panel.setLayout(null);

	JLabel lblNome = new JLabel("*Nome:");
	lblNome.setFont(new Font("Bodoni MT", Font.BOLD, 14));
	lblNome.setForeground(new Color(25, 25, 112));
	lblNome.setBounds(178, 141, 51, 14);
	panel.add(lblNome);

	JLabel lblTipo = new JLabel("*Tipo:");
	lblTipo.setFont(new Font("Bodoni MT", Font.BOLD, 14));
	lblTipo.setForeground(new Color(25, 25, 112));
	lblTipo.setBounds(10, 230, 58, 14);
	panel.add(lblTipo);

	JLabel lblSenha = new JLabel("*Senha:");
	lblSenha.setFont(new Font("Bodoni MT", Font.BOLD, 14));
	lblSenha.setForeground(new Color(25, 25, 112));
	lblSenha.setBounds(228, 185, 61, 14);
	panel.add(lblSenha);

	nomeField = new JTextField();
	nomeField.setBounds(243, 138, 412, 20);
	panel.add(nomeField);
	nomeField.setColumns(10);

	senhaField = new JPasswordField();
	senhaField.setBounds(299, 183, 356, 20);
	panel.add(senhaField);

	@SuppressWarnings("rawtypes")
	JComboBox cbTipo = new JComboBox();
	cbTipo.setBounds(71, 227, 584, 20);
	panel.add(cbTipo);
	cbTipo.addItem("Selecione");
	cbTipo.addItem("ADMINISTRADOR");
	cbTipo.addItem("NORMAL");

	JButton btnSalvar = new JButton("Salvar");
	btnSalvar.setBackground(new Color(255, 255, 255));
	btnSalvar.setForeground(new Color(0, 0, 0));
	btnSalvar.setIcon(new ImageIcon("C:\\Users\\Roberta Xavier\\Desktop\\icones projeto poo\\salvar.png"));
	btnSalvar.setFont(new Font("Calibri", Font.BOLD | Font.ITALIC, 15));
	btnSalvar.addActionListener(new ActionListener() {
		public void actionPerformed(ActionEvent arg0) {
			
			controleUsuario.btnSalvar(cbTipo, idField, nomeField, telefoneField, senhaField);

// String id = idField.getText();
//
// if (!idField.getText().equals("")) {
// int ID = Integer.parseInt(id);
// usuario.setUSU_ID(ID);
// }
//
// usuario.setUSU_NOME(nomeField.getText());
//
// usuario.setUSU_TEL(telefoneField.getText());
//
// usuario.setUSU_SENHA(senhaField.getText());
//
// // ESSA LINHA ABAIXO PEGA A STRING DO COMBOBOX E SALVA NA BASE
// // DE DADOS.
// // ***EXEMPLOS > ADM = ADM, NORAMAL = NORMAL
// usuario.setUSU_TIPO(cbTipo.getSelectedItem().toString());
//
// // ESSA LINHA ABAIXO PEGA O NÚMERO REFERENTE AO ITEM SELECIONADO
// // NO COMBOBOX E SALVA NA BASE DE DADOS.
// // ***EXEMPLO > ADM = 1, NORMAL = 2;
// // usuario.setUSU_TIPO(String.valueOf(cbTipo.getSelectedIndex()));
//
// if ((!idField.getText().equals("")) && (!nomeField.getText().equals(""))
// && (!telefoneField.getText().equals("")) && (!senhaField.getText().equals(""))
// && (!cbTipo.getSelectedItem().equals(“Selecione”))) {
//
// usuarioDao.save(usuario);
// JOptionPane.showMessageDialog(null, “Usuario " + nomeField.getText() + " inserido com sucesso!”);
//
// } else {
// JOptionPane.showMessageDialog(null, “CAMPOS EM BRANCO!”);
// }

		}
	});
	btnSalvar.setBounds(10, 288, 99, 23);
	panel.add(btnSalvar);


	telefoneField = new JTextField();
	telefoneField.setText("(  )     -    ");
	telefoneField.setColumns(10);
	telefoneField.setBounds(70, 182, 148, 20);
	panel.add(telefoneField);

	JLabel lblFone = new JLabel("Telefone:");
	lblFone.setFont(new Font("Bodoni MT", Font.BOLD, 14));
	lblFone.setForeground(new Color(25, 25, 112));
	lblFone.setBounds(10, 185, 58, 14);
	panel.add(lblFone);

	idField = new JTextField();
	idField.setColumns(10);
	idField.setBounds(58, 138, 110, 20);
	panel.add(idField);

	JLabel lblid = new JLabel("*ID:");
	lblid.setFont(new Font("Bodoni MT", Font.BOLD, 13));
	lblid.setForeground(new Color(25, 25, 112));
	lblid.setBounds(10, 141, 51, 14);
	panel.add(lblid);
	
	JButton btnEditar = new JButton("Editar");
	btnEditar.setBackground(new Color(255, 255, 255));
	btnEditar.setForeground(new Color(0, 0, 0));
	btnEditar.setIcon(new ImageIcon("C:\\Users\\Roberta Xavier\\Desktop\\icones projeto poo\\editar.png"));
	btnEditar.setFont(new Font("Calibri", Font.BOLD | Font.ITALIC, 15));
	btnEditar.addActionListener(new ActionListener() {
		public void actionPerformed(ActionEvent e) {
			controleUsuario.btnEditar(cbTipo, idField, nomeField, telefoneField, senhaField);
		}
	});
	btnEditar.setBounds(119, 287, 110, 23);
	panel.add(btnEditar);
	
	JButton btnPesquisar = new JButton("Pesquisar");
	btnPesquisar.setBackground(new Color(255, 255, 255));
	btnPesquisar.setForeground(new Color(0, 0, 0));
	btnPesquisar.setIcon(new ImageIcon("C:\\Users\\Roberta Xavier\\Desktop\\icones projeto poo\\pesquisar1.png"));
	btnPesquisar.setFont(new Font("Calibri", Font.BOLD | Font.ITALIC, 15));
	btnPesquisar.addActionListener(new ActionListener() {
		public void actionPerformed(ActionEvent arg0) {
			controleUsuario.btnPesquisar(btnSalvar, btnEditar, cbTipo, idField, nomeField, telefoneField, senhaField);
		}
	});
	btnPesquisar.setBounds(243, 287, 124, 24);
	panel.add(btnPesquisar);
	
	JButton btnVoltar = new JButton("Voltar");
	btnVoltar.setBackground(new Color(255, 255, 255));
	btnVoltar.setForeground(new Color(0, 0, 0));
	btnVoltar.setIcon(new ImageIcon("C:\\Users\\Roberta Xavier\\Desktop\\icones projeto poo\\voltar.png"));
	btnVoltar.setFont(new Font("Calibri", Font.BOLD | Font.ITALIC, 15));
	btnVoltar.addActionListener(new ActionListener() {
		@SuppressWarnings("deprecation")
		public void actionPerformed(ActionEvent e) {
			FrameMenu frameMenu = new FrameMenu();
			frameMenu.show();
			dispose();
		}
	});
	btnVoltar.setBounds(377, 288, 109, 23);
	panel.add(btnVoltar);
	
	JButton btnSair = new JButton("Sair do Sistema");
	btnSair.setBackground(new Color(255, 255, 255));
	btnSair.setForeground(new Color(0, 0, 0));
	btnSair.setIcon(new ImageIcon("C:\\Users\\Roberta Xavier\\Desktop\\icones projeto poo\\sair.png"));
	btnSair.setFont(new Font("Calibri", Font.BOLD | Font.ITALIC, 15));
	btnSair.addActionListener(new ActionListener() {
		public void actionPerformed(ActionEvent e) {
			System.exit(0);
		}
	});
	btnSair.setBounds(496, 288, 159, 23);
	panel.add(btnSair);
	
	JLabel label = new JLabel("");
	label.setIcon(new ImageIcon("C:\\Users\\Roberta Xavier\\Desktop\\icones projeto poo\\CREATE2,1 - Copia.png"));
	label.setBounds(108, 11, 481, 102);
	panel.add(label);

}

}

todos os JFrame com ComboBox estão dando erro

onde você colocou o @SuppressWarnings(“rawtypes”) atribua o JcomboBox com:
JComboBox cbTipo = new JComboBox();

usei seu metodo aqui e funcionou blz.

Valeu funcionou…

mais ainda to com erro em outro JFrame

java.sql.SQLException: Field 'USU_ID' doesn't have a default value
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:965)
	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3973)
	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3909)
	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2527)
	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2680)
	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2484)
	at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1858)
	at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1197)
	at DAO.AlunoDAO.save(AlunoDAO.java:67)
	at view.FramePrincipal$5.actionPerformed(FramePrincipal.java:319)
	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

tirei o not null do USU_ID e agora roda… mais não salva.

O campo JSpinner com o modelo de número inicial, mínimo, máximo, incremento ou decremento.

`JSpinner campoNum = new JSpinner(new SpinnerNumberModel(0, 0, 999999999, 1));

Seria mais viável usa-ló para obrigar o usuário inserir apenas numero no campo, evita um erro na conversão, pois teria que haver um try cacth.

Moço não to entendendo, sou iniciante em programação…
onde seria isso?

  package model;



public class Aluno {
	
	private int ALU_RA;
	private String ALU_NOME;
	private String ALU_SEXO;
	private java.sql.Date ALU_DATANASC;
	private String ALU_CPF;
	private String ALU_FILIACAO;
	private String ALU_ENDERECO;
	private String ALU_TELEFONE;
	private java.sql.Date ALU_DATAMATRI;
	private String ALU_DISCCONC;
	private String ALU_DISCPEND;
	private int ALU_CRED;
	private String ALU_PROFIC;
	private String ALU_SISTEMA;
	private int USU_ID;
	private int ORIENT_ID;
	private int CUR_ID;
	
	
	public int getALU_RA() {
		return ALU_RA;
	}
	public void setALU_RA(int ALU_RA) {
		this.ALU_RA = ALU_RA;
	}
	public String getALU_NOME() {
		return ALU_NOME;
	}
	public void setALU_NOME(String ALU_NOME) {
		this.ALU_NOME = ALU_NOME;
	}
	public String getALU_SEXO() {
		return ALU_SEXO;
	}
	public void setALU_SEXO(String ALU_SEXO) {
		this.ALU_SEXO = ALU_SEXO;
	}
	public java.sql.Date getALU_DATANASC() {
		return ALU_DATANASC;
	}
	public void setALU_DATANASC(java.sql.Date ALU_DATANASC) {
		this.ALU_DATANASC = ALU_DATANASC;
	}
	public String getALU_CPF() {
		return ALU_CPF;
	}
	public void setALU_CPF(String ALU_CPF) {
		this.ALU_CPF = ALU_CPF;
	}
	public String getALU_FILIACAO() {
		return ALU_FILIACAO;
	}
	public void setALU_FILIACAO(String ALU_FILIACAO) {
		this.ALU_FILIACAO = ALU_FILIACAO;
	}
	public String getALU_ENDERECO() {
		return ALU_ENDERECO;
	}
	public void setALU_ENDERECO(String ALU_ENDERECO) {
		this.ALU_ENDERECO = ALU_ENDERECO;
	}
	public String getALU_TELEFONE() {
		return ALU_TELEFONE;
	}
	public void setALU_TELEFONE(String ALU_TELEFONE) {
		this.ALU_TELEFONE = ALU_TELEFONE;
	}
	public java.sql.Date getALU_DATAMATRI() {
		return ALU_DATAMATRI;
	}
	public void setALU_DATAMATRI(java.sql.Date ALU_DATAMATRI) {
		this.ALU_DATAMATRI = ALU_DATAMATRI;
	}
	public String getALU_DISCCONC() {
		return ALU_DISCCONC;
	}
	public void setALU_DISCCONC(String ALU_DISCCONC) {
		this.ALU_DISCCONC = ALU_DISCCONC;
	}
	public String getALU_DISCPEND() {
		return ALU_DISCPEND;
	}
	public void setALU_DISCPEND(String ALU_DISCPEND) {
		this.ALU_DISCPEND = ALU_DISCPEND;
	}
	public int getALU_CRED() {
		return ALU_CRED;
	}
	public void setALU_CRED(int ALU_CRED) {
		this.ALU_CRED = ALU_CRED;
	}
	public String getALU_PROFIC() {
		return ALU_PROFIC;
	}
	public void setALU_PROFIC(String ALU_PROFIC) {
		this.ALU_PROFIC = ALU_PROFIC;
	}
	public String getALU_SISTEMA() {
		return ALU_SISTEMA;
	}
	public void setALU_SISTEMA(String ALU_SISTEMA) {
		this.ALU_SISTEMA = ALU_SISTEMA;
	}
	public int getUSU_ID() {
		return USU_ID;
	}
	public void setUSU_ID(int USU_ID) {
		this.USU_ID = USU_ID;
	}
	public int getORIENT_ID() {
		return ORIENT_ID;
	}
	public void setORIENT_ID(int ORIENT_ID) {
		this.ORIENT_ID = ORIENT_ID;
	}
	
	public int getCUR_ID() {
		return CUR_ID;
	}
	public void setCUR_ID(int CUR_ID) {
		this.CUR_ID = CUR_ID;
	}
}

ou

	package DAO;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
import model.Aluno;
 
public class AlunoDAO {
 
	public void save(Aluno aluno){
		 /*
		 * Isso é uma sql comum, os ? são os parâmetros que nós vamos adicionar
		 * na base de dados
		 */
		 
		 String sql = "INSERT INTO aluno (ALU_RA, ALU_NOME, ALU_SEXO, ALU_DATANASC, ALU_CPF, ALU_FILIACAO, ALU_ENDERECO,"
		 + "ALU_TELEFONE, ALU_DATAMATRI, ALU_DISCCONC, ALU_DISCPEND, ALU_CRED, ALU_PROFIC, ALU_SISTEMA, ORIENT_ID, CUR_ID)"+
		 " VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
		 
		 Connection conn = null;
		 PreparedStatement pstm = null;
		 
		 try {
				 //Cria uma conexão com o banco
				 conn = Conexao.getConnectionToMySQL();
				 
				 //Cria um PreparedStatment, classe usada para executar a query
				 pstm = conn.prepareStatement(sql);
				 
				 //Adiciona o valor do primeiro parâmetro da sql
				 pstm.setInt(1, aluno.getALU_RA());
				 //Adicionar o valor do segundo parâmetro da sql
				 pstm.setString(2, aluno.getALU_NOME());
				 //Adiciona o valor do terceiro parâmetro da sql
				 pstm.setString(3, aluno.getALU_SEXO());
				 //Adiciona o valor do quarto parâmetro da sql
				 pstm.setDate(4, aluno.getALU_DATANASC());
				 //Adiciona o valor do quinto parâmetro da sql
				 pstm.setString(5, aluno.getALU_CPF());
				 //Adiciona o valor do sexto parâmetro da sql
				 pstm.setString(6, aluno.getALU_FILIACAO());
				 //Adiciona o valor do setimo parâmetro da sql
				 pstm.setString(7, aluno.getALU_ENDERECO());
				 //Adiciona o valor do oitavo parâmetro da sql
				 pstm.setString(8, aluno.getALU_TELEFONE());
				 //Adiciona o valor do nona parâmetro da sql
				 pstm.setDate(9, aluno.getALU_DATAMATRI());
				 //Adiciona o valor do decimo parâmetro da sql
				 pstm.setString(10, aluno.getALU_DISCCONC());
				 //Adiciona o valor do decimo primeiro parâmetro da sql
				 pstm.setString(11, aluno.getALU_DISCPEND());
				 //Adiciona o valor do decimo segundo parâmetro da sql
				 pstm.setInt(12, aluno.getALU_CRED());
				 //Adiciona o valor do decimo terceiro parâmetro da sql
				 pstm.setString(13, aluno.getALU_PROFIC());
				 //Adiciona o valor do decimo quarto parâmetro da sql
				 pstm.setString(14, aluno.getALU_SISTEMA());
				 //Adiciona o valor do decimo quinto parâmetro da sql
				 pstm.setInt(15, aluno.getORIENT_ID());
				 //Adiciona o valor do decimo quinto parâmetro da sql
				 pstm.setInt(16, aluno.getCUR_ID());
				 //Adiciona o valor do decimo sexto parâmetro da sql
				 
				 //Executa a sql para inserção dos dados
				 pstm.execute();
				 
		 } catch (Exception e) {
		 
			 	e.printStackTrace();
		 }finally{
		 
		 //Fecha as conexões
		 
		 try{
				 if(pstm != null){
				 
				 pstm.close();
				 }
				 
				 if(conn != null){
				 conn.close();
				 }
				 
		 }catch(Exception e){
		 
			 e.printStackTrace();
		 	}
		 }
	 }
	 
	 public void removeById(int id){
	 
			 String sql = "DELETE FROM Aluno WHERE ALU_RA = ?";
			 
			 Connection conn = null;
			 PreparedStatement pstm = null;
			 
			 try {
				 conn = Conexao.getConnectionToMySQL();
				 
				 pstm = conn.prepareStatement(sql);
				 
				 pstm.setInt(1, id);
				 
				 pstm.execute();
				 
			 } catch (Exception e) {
			 // TODO Auto-generated catch block
				 e.printStackTrace();
			 }finally{
			 
			 try{
				 if(pstm != null){
				 
				 pstm.close();
				 }
				 
				 if(conn != null){
				 conn.close();
				 }
				 
			 }catch(Exception e){
			 
				 e.printStackTrace();
			 }
			 }
	 }
	 
	 public void update(Aluno aluno){
	 
		 String sql = "UPDATE aluno SET ALU_NOME = ?, ALU_SEXO = ?, ALU_DATANASC = ?, ALU_CPF = ?, ALU_FILIACAO = ?"
		 + ", ALU_ENDERECO = ?, ALU_TELEFONE = ?, ALU_DATAMATRI = ?, ALU_DISCCON = ?, ALU_DISCPEND = ?, ALU_CRED = ?, ALU_PROFIC = ?"
		 + ", ALU_SISTEMA = ?, ORIENT_ID = ?, CUR_ID = ? WHERE ALU_RA = ?";
		 
		 Connection conn = null;
		 PreparedStatement pstm = null;
		 
		 try {
				 //Cria uma conexão com o banco
				 conn = Conexao.getConnectionToMySQL();
				 
				 //Cria um PreparedStatment, classe usada para executar a query
				 pstm = conn.prepareStatement(sql);
				 
				 //Adicionar o valor do primeiro parâmetro da sql
				 pstm.setString(1, aluno.getALU_NOME());
				 //Adiciona o valor do segundo parâmetro da sql
				 pstm.setString(2, aluno.getALU_SEXO());
				 //Adiciona o valor do terceiro parâmetro da sql
				 pstm.setDate(3, aluno.getALU_DATANASC());
				 //Adiciona o valor do quarto parâmetro da sql
				 pstm.setString(4, aluno.getALU_CPF());
				 //Adiciona o valor do quinto parâmetro da sql
				 pstm.setString(5, aluno.getALU_FILIACAO());
				 //Adiciona o valor do sexto parâmetro da sql
				 pstm.setString(6, aluno.getALU_ENDERECO());
				 //Adiciona o valor do setimo parâmetro da sql
				 pstm.setString(7, aluno.getALU_TELEFONE());
				 //Adiciona o valor do oitavo parâmetro da sql
				 pstm.setDate(8, aluno.getALU_DATAMATRI());
				 //Adiciona o valor do nono parâmetro da sql
				 pstm.setString(9, aluno.getALU_DISCCONC());
				 //Adiciona o valor do decimo parâmetro da sql
				 pstm.setString(10, aluno.getALU_DISCPEND());
				 //Adiciona o valor do decimo primeiro parâmetro da sql
				 pstm.setInt(11, aluno.getALU_CRED());
				 //Adiciona o valor do decimo segundo parâmetro da sql
				 pstm.setString(12, aluno.getALU_PROFIC());
				 //Adiciona o valor do decimo terceiro parâmetro da sql
				 pstm.setString(13, aluno.getALU_SISTEMA());
				 //Adiciona o valor do decimo quarto parâmetro da sql
				 pstm.setInt(14, aluno.getORIENT_ID());
				 //Adiciona o valor do decimo quinto parâmetro da sql
				 pstm.setInt(15, aluno.getCUR_ID());
				 //Adiciona a matricula no valor do decimo sexto parametro da sql
				 pstm.setInt(16, aluno.getALU_RA());
				 
				 //Executa a sql para inserção dos dados
				 pstm.execute();
		 
		 } catch (Exception e) {
		 
			 	e.printStackTrace();
		 }finally{
		 
		 //Fecha as conexões
		 
		 try{
				 if(pstm != null){
				 
				 pstm.close();
				 }
				 
				 if(conn != null){
				 conn.close();
				 }
				 
		 }catch(Exception e){
		 
			 e.printStackTrace();
		 	}
		 }
	}
	 
	 public List<Aluno> getAlunos(){
	 
			 String sql = "SELECT * FROM Aluno";
			 
			 List<Aluno> alunos = new ArrayList<Aluno>();
			 
			 Connection conn = null;
			 PreparedStatement pstm = null;
			 //Classe que vai recuperar os dados do banco de dados
			 ResultSet rset = null;
			 
	 try {
			 conn = Conexao.getConnectionToMySQL();
			 
			 pstm = conn.prepareStatement(sql);
			 
			 rset = pstm.executeQuery();
			 
	 //Enquanto existir dados no banco de dados, faça
	 while(rset.next()){
			 
			 Aluno aluno = new Aluno();
			 			 
			 //Recupera o id do banco e atribui ele ao objeto
			 aluno.setALU_RA(rset.getInt("ALU_RA"));
			 //Recupera o nome do banco e atribui ele ao objeto
			 aluno.setALU_NOME(rset.getString("ALU_NOME"));
			 //Adiciona o valor do terceiro parâmetro da sql
			 aluno.setALU_SEXO(rset.getString("ALU_SEXO"));
			 //Adiciona o valor do quarto parâmetro da sql
			 aluno.setALU_DATANASC(rset.getDate("ALU_DATANASC"));
			 //Adiciona o valor do quinto parâmetro da sql
			 aluno.setALU_CPF(rset.getString("ALU_CPF"));
			 //Adiciona o valor do sexto parâmetro da sql
			 aluno.setALU_FILIACAO(rset.getString("ALU_FILIACAO"));
			 //Adiciona o valor do setimo parâmetro da sql
			 aluno.setALU_ENDERECO(rset.getString("ALU_ENDERECO"));
			 //Adiciona o valor do oitavo parâmetro da sql
			 aluno.setALU_TELEFONE(rset.getString("ALU_TELEFONE"));
			 //Adiciona o valor do nona parâmetro da sql
			 aluno.setALU_DATAMATRI(rset.getDate("ALU_DATAMATRI"));
			 //Adiciona o valor do decimo parâmetro da sql
			 aluno.setALU_DISCCONC(rset.getString("ALU_DISCCON"));
			 //Adiciona o valor do decimo primeiro parâmetro da sql
			 aluno.setALU_DISCPEND(rset.getString("ALU_DISCPEND"));
			 //Adiciona o valor do decimo segundo parâmetro da sql
			 aluno.setALU_CRED(rset.getInt("ALU_CRED"));
			 //Adiciona o valor do decimo terceiro parâmetro da sql
			 aluno.setALU_PROFIC(rset.getString("ALU_PROFIC"));
			 //Adiciona o valor do decimo quarto parâmetro da sql
			 aluno.setALU_SISTEMA(rset.getString("ALU_SISTEMA"));
			 //Adiciona o valor do decimo quinto parâmetro da sql
			 aluno.setORIENT_ID(rset.getInt("ORIENT_ID"));
			 //Adiciona o valor do decimo sexto parâmetro da sql
			 aluno.setCUR_ID(rset.getInt("CUR_ID"));
			 
			 //Adiciono o contato recuperado, a lista de contatos
			 alunos.add(aluno);
			 }
	 } catch (Exception e) {
		 	e.printStackTrace();
	 }finally{
	 
	 try{
	 
			 if(rset != null){
			 
			 rset.close();
			 }
			 
			 if(pstm != null){
			 
			 pstm.close();
			 }
			 
			 if(conn != null){
			 conn.close();
			 }
	 
	 }catch(Exception e){
			 
			 e.printStackTrace();
			 }
			 }
			 
	 return alunos;
	 }
	 
	 
// inicio do novo método

			 public List<Aluno> pesquisarAlunos(String nome){
				 
				 String sql = "SELECT * FROM Aluno WHERE ALU_NOME LIKE'%"+nome+"%'";
				 
				 List<Aluno> alunos = new ArrayList<Aluno>();
				 
				 Connection conn = null;
				 PreparedStatement pstm = null;
				 //Classe que vai recuperar os dados do banco de dados
				 ResultSet rset = null;
				 
		 try {
				 conn = Conexao.getConnectionToMySQL();
				 
				 pstm = conn.prepareStatement(sql);
				 
				 rset = pstm.executeQuery();
				 
		 //Enquanto existir dados no banco de dados, faça
		 while(rset.next()){
				 
				 Aluno aluno = new Aluno();
				 			 
				 //Recupera o id do banco e atribui ele ao objeto
				 aluno.setALU_RA(rset.getInt("ALU_RA"));
				 //Recupera o nome do banco e atribui ele ao objeto
				 aluno.setALU_NOME(rset.getString("ALU_NOME"));
				 //Adiciona o valor do terceiro parâmetro da sql
				 aluno.setALU_SEXO(rset.getString("ALU_SEXO"));
				 //Adiciona o valor do quarto parâmetro da sql
				 aluno.setALU_DATANASC(rset.getDate("ALU_DATANASC"));
				 //Adiciona o valor do quinto parâmetro da sql
				 aluno.setALU_CPF(rset.getString("ALU_CPF"));
				 //Adiciona o valor do sexto parâmetro da sql
				 aluno.setALU_FILIACAO(rset.getString("ALU_FILIACAO"));
				 //Adiciona o valor do setimo parâmetro da sql
				 aluno.setALU_ENDERECO(rset.getString("ALU_ENDERECO"));
				 //Adiciona o valor do oitavo parâmetro da sql
				 aluno.setALU_TELEFONE(rset.getString("ALU_TELEFONE"));
				 //Adiciona o valor do nona parâmetro da sql
				 aluno.setALU_DATAMATRI(rset.getDate("ALU_DATAMATRI"));
				 //Adiciona o valor do decimo parâmetro da sql
				 aluno.setALU_DISCCONC(rset.getString("ALU_DISCCON"));
				 //Adiciona o valor do decimo primeiro parâmetro da sql
				 aluno.setALU_DISCPEND(rset.getString("ALU_DISCPEND"));
				 //Adiciona o valor do decimo segundo parâmetro da sql
				 aluno.setALU_CRED(rset.getInt("ALU_CRED"));
				 //Adiciona o valor do decimo terceiro parâmetro da sql
				 aluno.setALU_PROFIC(rset.getString("ALU_PROFIC"));
				 //Adiciona o valor do decimo quarto parâmetro da sql
				 aluno.setALU_SISTEMA(rset.getString("ALU_SISTEMA"));
				 //Adiciona o valor do decimo quinto parâmetro da sql
				 aluno.setUSU_ID(rset.getInt("USU_ID"));
				 //Adiciona o valor do decimo sexto parâmetro da sql
				 aluno.setORIENT_ID(rset.getInt("ORIENT_ID"));
				 //Adiciona o valor do decimo setimo parâmetro da sql
				 aluno.setCUR_ID(rset.getInt("CUR_ID"));
				 
				 //Adiciono o contato recuperado, a lista de contatos
				 alunos.add(aluno);
				 }
		 } catch (Exception e) {
			 	e.printStackTrace();
		 }finally{
		 
		 try{
		 
				 if(rset != null){
				 
				 rset.close();
				 }
				 
				 if(pstm != null){
				 
				 pstm.close();
				 }
				 
				 if(conn != null){
				 conn.close();
				 }
		 
		 }catch(Exception e){
				 
				 e.printStackTrace();
				 }
				 }
				 
		 return alunos;
		 }
// fim do novo método	 
	 
			// inicio do novo método

			 public Aluno pesquisarAluno(String nome){
				 
				 String sql = "SELECT * FROM Aluno WHERE ALU_NOME LIKE '%"+nome+"%'";
				 
				 Aluno aluno = new Aluno();
				 
				 Connection conn = null;
				 PreparedStatement pstm = null;
				 //Classe que vai recuperar os dados do banco de dados
				 ResultSet rset = null;
				 
		 try {
				 conn = Conexao.getConnectionToMySQL();
				 
				 pstm = conn.prepareStatement(sql);
				 
				 rset = pstm.executeQuery();
				 
		 //Enquanto existir dados no banco de dados, faça
		 while(rset.next()){
				 
				 //Recupera o id do banco e atribui ele ao objeto
				 aluno.setALU_RA(rset.getInt("ALU_RA"));
				 //Recupera o nome do banco e atribui ele ao objeto
				 aluno.setALU_NOME(rset.getString("ALU_NOME"));
				 //Adiciona o valor do terceiro parâmetro da sql
				 aluno.setALU_SEXO(rset.getString("ALU_SEXO"));
				 //Adiciona o valor do quarto parâmetro da sql
				 aluno.setALU_DATANASC(rset.getDate("ALU_DATANASC"));
				 //Adiciona o valor do quinto parâmetro da sql
				 aluno.setALU_CPF(rset.getString("ALU_CPF"));
				 //Adiciona o valor do sexto parâmetro da sql
				 aluno.setALU_FILIACAO(rset.getString("ALU_FILIACAO"));
				 //Adiciona o valor do setimo parâmetro da sql
				 aluno.setALU_ENDERECO(rset.getString("ALU_ENDERECO"));
				 //Adiciona o valor do oitavo parâmetro da sql
				 aluno.setALU_TELEFONE(rset.getString("ALU_TELEFONE"));
				 //Adiciona o valor do nona parâmetro da sql
				 aluno.setALU_DATAMATRI(rset.getDate("ALU_DATAMATRI"));
				 //Adiciona o valor do decimo parâmetro da sql
				 aluno.setALU_DISCCONC(rset.getString("ALU_DISCCON"));
				 //Adiciona o valor do decimo primeiro parâmetro da sql
				 aluno.setALU_DISCPEND(rset.getString("ALU_DISCPEND"));
				 //Adiciona o valor do decimo segundo parâmetro da sql
				 aluno.setALU_CRED(rset.getInt("ALU_CRED"));
				 //Adiciona o valor do decimo terceiro parâmetro da sql
				 aluno.setALU_PROFIC(rset.getString("ALU_PROFIC"));
				 //Adiciona o valor do decimo quarto parâmetro da sql
				 aluno.setALU_SISTEMA(rset.getString("ALU_SISTEMA"));
				 //Adiciona o valor do decimo quinto parâmetro da sql
				 aluno.setORIENT_ID(rset.getInt("ORIENT_ID"));
				 //Adiciona o valor do decimo sexto parâmetro da sql
				 aluno.setCUR_ID(rset.getInt("CUR_ID"));
				 
				 //Adiciono o contato recuperado, a lista de contatos
				 //alunos.add(aluno);
				 }
		 } catch (Exception e) {
			 	e.printStackTrace();
		 }finally{
		 
		 try{
		 
				 if(rset != null){
				 
				 rset.close();
				 }
				 
				 if(pstm != null){
				 
				 pstm.close();
				 }
				 
				 if(conn != null){
				 conn.close();
				 }
		 
		 }catch(Exception e){
				 
				 e.printStackTrace();
				 }
				 }
				 
		 return aluno;
		 }
// fim do novo método	 


			 
			 
			 
}

Substitua aquele classe por essa.

moço não é esse frame que esta com problemas é esse:

package view;

import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JMenuBar;
import javax.swing.JOptionPane;
import javax.swing.JMenu;
import javax.swing.border.BevelBorder;
import javax.swing.border.TitledBorder;
import javax.swing.text.MaskFormatter;

import DAO.AlunoDAO;
import DAO.OrientadorDAO;
import DAO.CursoDAO;
import model.Aluno;
import model.Orientador;
import model.Curso;

import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFormattedTextField;
import java.awt.event.ActionListener;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.List;
import java.awt.event.ActionEvent;
import java.awt.event.MouseMotionAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseAdapter;
import java.awt.Color;
import java.awt.Font;
import javax.swing.SwingConstants;
import javax.swing.ImageIcon;
import javax.swing.UIManager;

public class FramePrincipal extends JFrame {


	private JPanel contentPane;
	private JTextField RAField;
	private JTextField nascimentoField;
	private JTextField enderecoField;
	private JTextField nomeField;
	private JTextField filiacaoField;
	private JTextField cpfField;
	private JTextField telefoneField;
	private JTextField matriculaField;
	private JTextField creditoField;
	private JTextField disciplinaField;
	private JTextField pendenciaField;
	private String tipo;
	private String tipo2;
	private String tipo3;
	private int orientadorID;
	private int tipo5;

	AlunoDAO dao = new AlunoDAO();
	Aluno aluno = new Aluno();
	OrientadorDAO oridao = new OrientadorDAO();
	CursoDAO curdao = new CursoDAO();
	
	//Combobox para o sexo
	JComboBox<String> cb = new JComboBox<String>();
	//Formato da Data
	SimpleDateFormat formatDate = new SimpleDateFormat("dd/MM/yyyy");
	//Combobox para a proficiência
	JComboBox<String> cp = new JComboBox<String>();
	//Combobox para a nível do curso
	JComboBox<String> tc = new JComboBox<String>();
	//Combobox para buscar os orientadores
	JComboBox<String> cbOrientador = new JComboBox<String>();
	//Combobox para buscar os cursos
	JComboBox<String> cursoBox = new JComboBox<String>();
	
	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					FramePrincipal frame = new FramePrincipal();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public FramePrincipal() {
		setTitle("AcadSistem");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 885, 675);
		
		JMenuBar menuBar = new JMenuBar();
		setJMenuBar(menuBar);
		
		JMenu mnArquivo = new JMenu("Arquivo");
		menuBar.add(mnArquivo);
		
		JMenu mnAjuda = new JMenu("Ajuda");
		menuBar.add(mnAjuda);
		contentPane = new JPanel();
		contentPane.setBackground(new Color(176, 224, 230));
		contentPane.setForeground(Color.DARK_GRAY);
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
				
		JPanel panel = new JPanel();
		panel.setBackground(new Color(176, 224, 230));
		panel.setBorder(new TitledBorder(new BevelBorder(BevelBorder.LOWERED, new Color(176, 196, 222), new Color(176, 196, 222), new Color(176, 196, 222), new Color(176, 196, 222)), "Cadastrar Aluno", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(255, 255, 255)));
		
				
		JButton btnNovo = new JButton("Novo");
		btnNovo.setIcon(new ImageIcon("C:\\Users\\Roberta Xavier\\Desktop\\icones projeto poo\\NOVO.jpg"));
		btnNovo.setFont(new Font("Calibri", Font.BOLD | Font.ITALIC, 15));
		btnNovo.setForeground(new Color(0, 0, 0));
		btnNovo.setBackground(new Color(255, 255, 255));
		btnNovo.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				
				ClearFields();
				DesbloquearFields();
				PosicionarCombobox();
				
			}
		});
				
		JButton btnEditar = new JButton("Editar");
		btnEditar.setFont(new Font("Calibri", Font.BOLD | Font.ITALIC, 15));
		btnEditar.setIcon(new ImageIcon("C:\\Users\\Roberta Xavier\\Desktop\\icones projeto poo\\editar.png"));
		btnEditar.setForeground(new Color(0, 0, 0));
		btnEditar.setBackground(new Color(255, 255, 255));
		btnEditar.addMouseMotionListener(new MouseMotionAdapter() {
			@Override
			public void mouseMoved(MouseEvent arg0) {
				
				if(RAField.getText().trim().equals("")){
					btnEditar.setEnabled(false);
				}else if(nomeField.getText().trim().equals("")){
					btnEditar.setEnabled(false);
				}else if(cb.equals("Selecione")){
					btnEditar.setEnabled(false);
				}else if(nascimentoField.getText().trim().equals("")){
					btnEditar.setEnabled(false);
				}else if(filiacaoField.getText().trim().equals("")){
					btnEditar.setEnabled(false);
				}else if(cpfField.getText().trim().equals("")){
					btnEditar.setEnabled(false);
				}else if(enderecoField.getText().trim().equals("")){
					btnEditar.setEnabled(false);
				}else if(enderecoField.getText().trim().equals("")){
					btnEditar.setEnabled(false);
				}else if(matriculaField.getText().trim().equals("")){
					btnEditar.setEnabled(false);
				}else if(creditoField.getText().trim().equals("")){
					btnEditar.setEnabled(false);
				}else if(cp.equals("Selecione")){
					btnEditar.setEnabled(false);
				}else if(tc.equals("Selecione")){
					btnEditar.setEnabled(false);
				}else if(cursoBox.equals("Selecione")){
					btnEditar.setEnabled(false);
				}else if(cbOrientador.equals("Selecione")){
					btnEditar.setEnabled(false);
				}else if(disciplinaField.getText().trim().equals("")){
					btnEditar.setEnabled(false);
				}else if(pendenciaField.getText().trim().equals("")){
					btnEditar.setEnabled(false);
				}else {
					btnEditar.setEnabled(true);
				}
			}
		});
		btnEditar.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent arg0) {
				
				//capturando o registro academico
				String RA = RAField.getText();
				int ra = Integer.parseInt(RA);
				aluno.setALU_RA(ra);
				//capturando o nome do Aluno
				aluno.setALU_NOME(nomeField.getText());
				//capturando o combobox
				aluno.setALU_SEXO(tipo);
				
				//capiturando a data de nasciamento
				java.util.Date invoiceDate = null;
				try {
					invoiceDate = formatDate.parse(nascimentoField.getText().trim());
				} catch (ParseException e2) {
					// TODO Auto-generated catch block
					e2.printStackTrace();
				}
				java.sql.Date sqlDate = new java.sql.Date(invoiceDate.getTime());
				//finalizando a captura da data de nascimento.
				
				aluno.setALU_DATANASC(sqlDate);
				aluno.setALU_CPF(cpfField.getText());
				aluno.setALU_FILIACAO(filiacaoField.getText());
				String endereco;
				endereco = enderecoField.getText();
				aluno.setALU_ENDERECO(endereco);
				String telefone;
				telefone = telefoneField.getText();
				aluno.setALU_TELEFONE(telefone);
				
				//capturando a data da matricula
				java.util.Date invoiceDate2 = null;
				try {
					invoiceDate2 = formatDate.parse(matriculaField.getText().trim());
				} catch (ParseException e2) {
					// TODO Auto-generated catch block
					e2.printStackTrace();
				}
				java.sql.Date sqlDate2 = new java.sql.Date(invoiceDate2.getTime());
				aluno.setALU_DATAMATRI(sqlDate2);
				//fim da captura da matricula
				
				aluno.setALU_DISCCONC(disciplinaField.getText());
				aluno.setALU_DISCPEND(pendenciaField.getText());
				String crd = creditoField.getText();
				int cre = Integer.parseInt(crd);
				aluno.setALU_CRED(cre);
				aluno.setALU_PROFIC(tipo2);
				aluno.setALU_SISTEMA(tipo3);
				aluno.setORIENT_ID(orientadorID);
				aluno.setCUR_ID(tipo5);
				//realizando o update.
				dao.update(aluno);
				//Alerta
				JOptionPane.showMessageDialog(null, "Aluno "+nomeField.getText()+" atualizado com sucesso!");
				//Bloquear
				BloquearFields();

			}
		});
		
		JButton btnSalvar = new JButton("Salvar");
		btnSalvar.setFont(new Font("Calibri", Font.BOLD | Font.ITALIC, 15));
		btnSalvar.setIcon(new ImageIcon("C:\\Users\\Roberta Xavier\\Desktop\\icones projeto poo\\salvar.png"));
		btnSalvar.setForeground(new Color(0, 0, 0));
		btnSalvar.setBackground(new Color(255, 255, 255));
		btnSalvar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
							
				//capturando o registro academico
				String RA = RAField.getText();
				int ra = Integer.parseInt(RA);
				aluno.setALU_RA(ra);
				
				//capturando o nome do Aluno
				aluno.setALU_NOME(nomeField.getText());
				//capturando o combobox
				aluno.setALU_SEXO(tipo);

				java.util.Date invoiceDate = null;
				try {
					invoiceDate = formatDate.parse(nascimentoField.getText().trim());
				} catch (ParseException e2) {
					// TODO Auto-generated catch block
					e2.printStackTrace();
				}
				java.sql.Date sqlDate = new java.sql.Date(invoiceDate.getTime());
				aluno.setALU_DATANASC(sqlDate);
				aluno.setALU_CPF(cpfField.getText());
				aluno.setALU_FILIACAO(filiacaoField.getText());
				String endereco;
				endereco = enderecoField.getText();
				aluno.setALU_ENDERECO(endereco);
				String telefone;
				telefone = telefoneField.getText();
				aluno.setALU_TELEFONE(telefone);
				//capturando a data da matricula
				
				java.util.Date invoiceDate2 = null;
				try {
					invoiceDate2 = formatDate.parse(matriculaField.getText().trim());
				} catch (ParseException e2) {
					// TODO Auto-generated catch block
					e2.printStackTrace();
				}
				java.sql.Date sqlDate2 = new java.sql.Date(invoiceDate2.getTime());
				aluno.setALU_DATAMATRI(sqlDate2);
				
				aluno.setALU_DISCCONC(disciplinaField.getText());
				aluno.setALU_DISCPEND(pendenciaField.getText());
				String crd = creditoField.getText();
				int cre = Integer.parseInt(crd);
				aluno.setALU_CRED(cre);
				aluno.setALU_PROFIC(tipo2);
				aluno.setALU_SISTEMA(tipo3);
				aluno.setORIENT_ID(orientadorID);
				aluno.setCUR_ID(tipo5);

								
				// fazendo validação de campos
				if((RAField.getText().isEmpty() ||(nomeField.getText().isEmpty() || (tipo.isEmpty() || (nascimentoField.getText().isEmpty()
					|| (cpfField.getText().isEmpty() || (filiacaoField.getText().isEmpty() || (enderecoField.getText().isEmpty()
					|| (telefoneField.getText().isEmpty()  || (matriculaField.getText().isEmpty() || (disciplinaField.getText().isEmpty()
					|| (pendenciaField.getText().isEmpty() || (creditoField.getText().isEmpty() || (tipo2.isEmpty() || (tipo3.isEmpty())))))))))))))))
				{
					JOptionPane.showMessageDialog(null, "Os campos não podem estar vazios");
				}
				else
				{
					dao.save(aluno);
					JOptionPane.showMessageDialog(null, "Aluno "+nomeField.getText()+" inserido com sucesso!");
					
					// apaga os dados preenchidos nos campos de texto
					ClearFields();
				}

			}
		});
			
		//inicio do botão voltar
		JButton btnVoltar = new JButton("Voltar");
		btnVoltar.setFont(new Font("Calibri", Font.BOLD | Font.ITALIC, 15));
		btnVoltar.setIcon(new ImageIcon("C:\\Users\\Roberta Xavier\\Desktop\\icones projeto poo\\voltar.png"));
		btnVoltar.setForeground(new Color(0, 0, 0));
		btnVoltar.setBackground(new Color(255, 255, 255));
		btnVoltar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				
				FrameMenu telaMenu = new FrameMenu();
				telaMenu.show();
				dispose();

			}
		});
		//fim do botão voltar
		
		
		JButton btnSairDoSistema = new JButton("Sair do Sistema");
		btnSairDoSistema.setIcon(new ImageIcon("C:\\Users\\Roberta Xavier\\Desktop\\icones projeto poo\\sair.png"));
		btnSairDoSistema.setForeground(new Color(0, 0, 0));
		btnSairDoSistema.setBackground(new Color(255, 255, 255));
		btnSairDoSistema.setFont(new Font("Calibri", Font.BOLD | Font.ITALIC, 15));
		btnSairDoSistema.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				System.exit(0);
			}
		});
		
		JButton btnPesquisar = new JButton("Pesquisar");
		btnPesquisar.setFont(new Font("Calibri", Font.BOLD | Font.ITALIC, 15));
		btnPesquisar.setIcon(new ImageIcon("C:\\Users\\Roberta Xavier\\Desktop\\icones projeto poo\\pesquisar1.png"));
		btnPesquisar.setForeground(new Color(0, 0, 0));
		btnPesquisar.setBackground(new Color(255, 255, 255));
		btnPesquisar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				
				Aluno aluno;
				aluno = dao.pesquisarAluno(JOptionPane.showInputDialog("Informe o Nome do Aluno que deseja Editar!"));
				RAField.setText(Integer.toString(aluno.getALU_RA()));
				RAField.setEditable(false);
				nomeField.setText(aluno.getALU_NOME());
				cb.setSelectedItem(aluno.getALU_SEXO());
				nascimentoField.setText(formatDate.format(aluno.getALU_DATANASC()));
				filiacaoField.setText(aluno.getALU_FILIACAO());
				cpfField.setText(aluno.getALU_CPF());
				enderecoField.setText(aluno.getALU_ENDERECO());
				telefoneField.setText(aluno.getALU_TELEFONE());
				matriculaField.setText(formatDate.format(aluno.getALU_DATAMATRI()));
				creditoField.setText(Integer.toString(aluno.getALU_CRED()));
				cp.setSelectedItem(aluno.getALU_PROFIC());
				tc.setSelectedItem(aluno.getALU_SISTEMA());
				pendenciaField.setText(aluno.getALU_DISCPEND());
				disciplinaField.setText(aluno.getALU_DISCCONC());
				//seleção do valor do curso
				List<Curso> lista2 = curdao.getCursos();
					for (Curso cursos: lista2)
					{
						if(aluno.getCUR_ID() == cursos.getCUR_ID())
						{
							cursoBox.setSelectedItem(cursos.getCUR_DESCRICAO());
						}
							
					}
				//fim da seleção do curso.
				
				//seleção do valor do orientador
				List<Orientador> lista = oridao.getOrientadores();
					for (Orientador orientadores: lista)
					{
						if(aluno.getORIENT_ID() == orientadores.getORIENT_ID())
						{
							cbOrientador.setSelectedItem(orientadores.getORIENT_NOME());
						}
					}
				//fim da seleção do orientador
				btnSalvar.setEnabled(false);
				btnEditar.setEnabled(true);
			}
		});
		
		JLabel label = new JLabel("");
		
		JLabel label_1 = new JLabel("");
		label_1.setIcon(new ImageIcon("C:\\Users\\Roberta Xavier\\Desktop\\icones projeto poo\\CREATE3.png"));
		GroupLayout gl_contentPane = new GroupLayout(contentPane);
		gl_contentPane.setHorizontalGroup(
			gl_contentPane.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_contentPane.createSequentialGroup()
					.addContainerGap()
					.addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)
						.addGroup(gl_contentPane.createSequentialGroup()
							.addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)
								.addGroup(gl_contentPane.createSequentialGroup()
									.addComponent(btnNovo)
									.addPreferredGap(ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
									.addComponent(btnEditar)
									.addGap(18)
									.addComponent(btnSalvar, GroupLayout.PREFERRED_SIZE, 100, GroupLayout.PREFERRED_SIZE)
									.addGap(18)
									.addComponent(btnVoltar, GroupLayout.PREFERRED_SIZE, 109, GroupLayout.PREFERRED_SIZE)
									.addGap(27)
									.addComponent(btnPesquisar, GroupLayout.PREFERRED_SIZE, 123, GroupLayout.PREFERRED_SIZE)
									.addGap(52)
									.addComponent(btnSairDoSistema, GroupLayout.PREFERRED_SIZE, 193, GroupLayout.PREFERRED_SIZE))
								.addComponent(panel, Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
								.addComponent(label, Alignment.TRAILING))
							.addContainerGap())
						.addGroup(Alignment.TRAILING, gl_contentPane.createSequentialGroup()
							.addComponent(label_1, GroupLayout.PREFERRED_SIZE, 618, GroupLayout.PREFERRED_SIZE)
							.addGap(105))))
		);
		gl_contentPane.setVerticalGroup(
			gl_contentPane.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_contentPane.createSequentialGroup()
					.addContainerGap()
					.addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)
						.addComponent(label)
						.addComponent(label_1, GroupLayout.PREFERRED_SIZE, 100, GroupLayout.PREFERRED_SIZE))
					.addGap(11)
					.addComponent(panel, GroupLayout.PREFERRED_SIZE, 409, GroupLayout.PREFERRED_SIZE)
					.addGap(18)
					.addGroup(gl_contentPane.createParallelGroup(Alignment.BASELINE)
						.addComponent(btnSairDoSistema, GroupLayout.PREFERRED_SIZE, 29, GroupLayout.PREFERRED_SIZE)
						.addComponent(btnPesquisar, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE)
						.addComponent(btnVoltar, GroupLayout.PREFERRED_SIZE, 29, GroupLayout.PREFERRED_SIZE)
						.addComponent(btnSalvar)
						.addComponent(btnEditar, GroupLayout.PREFERRED_SIZE, 29, GroupLayout.PREFERRED_SIZE)
						.addComponent(btnNovo, GroupLayout.PREFERRED_SIZE, 29, GroupLayout.PREFERRED_SIZE))
					.addContainerGap())
		);
		
		JLabel lblRa = new JLabel("* RA:");
		lblRa.setFont(new Font("Bodoni MT", Font.BOLD, 13));
		lblRa.setForeground(new Color(25, 25, 112));
		
		RAField = new JTextField();
		RAField.setColumns(10);
		
		JLabel lblDataNasci = new JLabel("* Data de Nasc.:");
		lblDataNasci.setFont(new Font("Bodoni MT", Font.BOLD, 13));
		lblDataNasci.setForeground(new Color(25, 25, 112));
		
		MaskFormatter mascaraNascimento = null;
		try {
			mascaraNascimento = new MaskFormatter("##/##/####");
		} catch (ParseException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}
		
		nascimentoField = new JFormattedTextField(mascaraNascimento);
		nascimentoField.setHorizontalAlignment(SwingConstants.CENTER);
		nascimentoField.setColumns(10);
		
		JLabel lblEndereo = new JLabel("* Endereço:");
		lblEndereo.setFont(new Font("Bodoni MT", Font.BOLD, 13));
		lblEndereo.setForeground(new Color(25, 25, 112));
		
		enderecoField = new JTextField();
		enderecoField.setColumns(10);
		
		JLabel lblNome = new JLabel("* Nome:");
		lblNome.setFont(new Font("Bodoni MT", Font.BOLD, 13));
		lblNome.setForeground(new Color(25, 25, 112));
		
		nomeField = new JTextField();
		nomeField.setColumns(10);
		
		JLabel lblFiliao = new JLabel("* Filiação:");
		lblFiliao.setFont(new Font("Bodoni MT", Font.BOLD, 13));
		lblFiliao.setForeground(new Color(25, 25, 112));
		
		filiacaoField = new JTextField();
		filiacaoField.setColumns(10);
		
		JLabel lblSexo = new JLabel("* Sexo:");
		lblSexo.setFont(new Font("Bodoni MT", Font.BOLD, 13));
		lblSexo.setForeground(new Color(25, 25, 112));
		
		JLabel lblCpf = new JLabel("* CPF:");
		lblCpf.setFont(new Font("Bodoni MT", Font.BOLD, 13));
		lblCpf.setForeground(new Color(25, 25, 112));

		MaskFormatter mascaraCpf = null;
		try {
			mascaraCpf = new MaskFormatter("###.###.###-##");
		} catch (ParseException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}
		cpfField = new JFormattedTextField(mascaraCpf);
		cpfField.setHorizontalAlignment(SwingConstants.CENTER);
		cpfField.setColumns(10);
		
		JLabel lblTelefone = new JLabel("Telefone:");
		lblTelefone.setFont(new Font("Bodoni MT", Font.BOLD, 13));
		lblTelefone.setForeground(new Color(25, 25, 112));

		MaskFormatter mascaraTelefone = null;
		try {
			mascaraTelefone = new MaskFormatter("(##)#####-####");
		} catch (ParseException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}
		
		telefoneField = new JFormattedTextField(mascaraTelefone);
		telefoneField.setColumns(10);
		
		JPanel panel_1 = new JPanel();
		panel_1.setBackground(new Color(176, 224, 230));
		panel_1.setForeground(Color.RED);
		panel_1.setBorder(new TitledBorder(new BevelBorder(BevelBorder.LOWERED, new Color(176, 196, 222), new Color(176, 196, 222), new Color(176, 196, 222), new Color(176, 196, 222)), "Dados Acad\u00EAmicos", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(255, 255, 255)));
		
		//inicio do combox do sexo
		ActionListener actionListener = new ActionListener() {
	            public void actionPerformed(ActionEvent actionEvent) {
	            tipo = cb.getSelectedItem().toString();
	            }
	        };
	    cb.addActionListener(actionListener);
		cb.addItem("Selecione");
        cb.addItem("M");
        cb.addItem("F");
		
        
		GroupLayout gl_panel = new GroupLayout(panel);
		gl_panel.setHorizontalGroup(
			gl_panel.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_panel.createSequentialGroup()
					.addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
						.addGroup(gl_panel.createSequentialGroup()
							.addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
								.addComponent(lblEndereo)
								.addComponent(lblDataNasci)
								.addComponent(lblRa))
							.addPreferredGap(ComponentPlacement.UNRELATED)
							.addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
								.addGroup(gl_panel.createSequentialGroup()
									.addGroup(gl_panel.createParallelGroup(Alignment.LEADING, false)
										.addComponent(nascimentoField)
										.addComponent(RAField, GroupLayout.DEFAULT_SIZE, 130, Short.MAX_VALUE))
									.addGap(18)
									.addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
										.addGroup(gl_panel.createSequentialGroup()
											.addComponent(lblFiliao)
											.addPreferredGap(ComponentPlacement.UNRELATED)
											.addComponent(filiacaoField, GroupLayout.DEFAULT_SIZE, 302, Short.MAX_VALUE))
										.addGroup(gl_panel.createSequentialGroup()
											.addComponent(lblNome)
											.addGap(18)
											.addComponent(nomeField, GroupLayout.DEFAULT_SIZE, 307, Short.MAX_VALUE))))
								.addComponent(enderecoField, GroupLayout.DEFAULT_SIZE, 517, Short.MAX_VALUE))
							.addGap(18)
							.addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
								.addGroup(gl_panel.createSequentialGroup()
									.addComponent(lblSexo)
									.addGap(18)
									.addComponent(cb, 0, 132, Short.MAX_VALUE))
								.addGroup(gl_panel.createSequentialGroup()
									.addComponent(lblCpf)
									.addGap(18)
									.addComponent(cpfField, GroupLayout.PREFERRED_SIZE, 133, GroupLayout.PREFERRED_SIZE))
								.addGroup(gl_panel.createSequentialGroup()
									.addComponent(lblTelefone)
									.addPreferredGap(ComponentPlacement.RELATED)
									.addComponent(telefoneField, 132, 132, 132))))
						.addGroup(gl_panel.createSequentialGroup()
							.addContainerGap()
							.addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 794, GroupLayout.PREFERRED_SIZE)))
					.addContainerGap())
		);
		gl_panel.setVerticalGroup(
			gl_panel.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_panel.createSequentialGroup()
					.addGap(19)
					.addGroup(gl_panel.createParallelGroup(Alignment.BASELINE)
						.addComponent(RAField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
						.addComponent(lblRa)
						.addComponent(lblNome)
						.addComponent(lblSexo)
						.addComponent(nomeField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
						.addComponent(cb, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addPreferredGap(ComponentPlacement.UNRELATED)
					.addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
						.addGroup(gl_panel.createSequentialGroup()
							.addGroup(gl_panel.createParallelGroup(Alignment.BASELINE)
								.addComponent(lblDataNasci)
								.addComponent(nascimentoField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
								.addComponent(lblFiliao)
								.addComponent(filiacaoField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
							.addPreferredGap(ComponentPlacement.UNRELATED)
							.addGroup(gl_panel.createParallelGroup(Alignment.BASELINE)
								.addComponent(lblEndereo)
								.addComponent(enderecoField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
								.addComponent(lblTelefone)
								.addComponent(telefoneField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))
						.addGroup(gl_panel.createParallelGroup(Alignment.BASELINE)
							.addComponent(lblCpf)
							.addComponent(cpfField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))
					.addPreferredGap(ComponentPlacement.RELATED, 39, Short.MAX_VALUE)
					.addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 251, GroupLayout.PREFERRED_SIZE)
					.addContainerGap())
		);
		
		JLabel lblDataMatri = new JLabel("* Data da Matrícula:");
		lblDataMatri.setFont(new Font("Bodoni MT", Font.BOLD, 13));
		lblDataMatri.setForeground(new Color(25, 25, 112));

		MaskFormatter mascaraMatricula = null;
		try {
			mascaraMatricula = new MaskFormatter("##/##/####");
		} catch (ParseException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}
		
		matriculaField = new JFormattedTextField(mascaraMatricula);
		matriculaField.setFont(new Font("Tahoma", Font.ITALIC, 11));
		matriculaField.setToolTipText("");
		matriculaField.setText("  /             /    ");
		matriculaField.setHorizontalAlignment(SwingConstants.CENTER);
		matriculaField.setColumns(10);
		
		JLabel lblsistema = new JLabel("* Sistema:");
		lblsistema.setFont(new Font("Bodoni MT", Font.BOLD, 13));
		lblsistema.setForeground(new Color(25, 25, 112));
		lblsistema.setToolTipText("Graducação, Mestrado ou Doutorado");
		
		JLabel lblDisciplinasConcludas = new JLabel("Disciplinas Concluídas:");
		lblDisciplinasConcludas.setFont(new Font("Bodoni MT", Font.BOLD, 13));
		lblDisciplinasConcludas.setForeground(new Color(25, 25, 112));
		lblDisciplinasConcludas.setLabelFor(cb);
		
		JLabel lblTotalCredito = new JLabel("* Total Crédito:");
		lblTotalCredito.setFont(new Font("Bodoni MT", Font.BOLD, 13));
		lblTotalCredito.setForeground(new Color(25, 25, 112));
		
		creditoField = new JTextField();
		creditoField.setColumns(10);
		
		JLabel lblCurso = new JLabel("* Curso:");
		lblCurso.setFont(new Font("Bodoni MT", Font.BOLD, 13));
		lblCurso.setForeground(new Color(25, 25, 112));
		
		JLabel lblProficiencia = new JLabel("* Teste Proficiência:");
		lblProficiencia.setFont(new Font("Bodoni MT", Font.BOLD, 13));
		lblProficiencia.setForeground(new Color(25, 25, 112));
		
		JLabel lblOrientador = new JLabel("* Orientador:");
		lblOrientador.setFont(new Font("Bodoni MT", Font.BOLD, 13));
		lblOrientador.setForeground(new Color(25, 25, 112));
		
		JLabel lblDisciplinasPendentes = new JLabel("Disciplinas Pendentes:");
		lblDisciplinasPendentes.setFont(new Font("Bodoni MT", Font.BOLD, 13));
		lblDisciplinasPendentes.setForeground(new Color(25, 25, 112));
		
		//Combobox do Proficiencia
		ActionListener actionListener2 = new ActionListener() {
		            public void actionPerformed(ActionEvent actionEvent) {
		            tipo2 = cp.getSelectedItem().toString();
		            }
		        };
		    cp.addActionListener(actionListener2);
			cp.addItem("Selecione");
		    cp.addItem("S");
		    cp.addItem("N");
		
		    
		disciplinaField = new JTextField();
		disciplinaField.setColumns(10);
		
		pendenciaField = new JTextField();
		pendenciaField.setColumns(10);
		
		//Combobox para o nível do curso
		ActionListener actionListener3 = new ActionListener() {
	            public void actionPerformed(ActionEvent actionEvent) {
	            tipo3 = tc.getSelectedItem().toString();
	            }
	        };
        tc.addActionListener(actionListener3);
        tc.addItem("Selecione");
        tc.addItem("Graduação");
        tc.addItem("Mestrado");
        tc.addItem("Doutorado");
tc.addActionListener(actionListener3);
    tc.addItem("Selecione");
    tc.addItem("Graduação");
    tc.addItem("Mestrado");
    tc.addItem("Doutorado");
	
    //combobox 
	
	//Combobox para o buscar os orientadores
	cbOrientador.addActionListener(new ActionListener() {
		public void actionPerformed(ActionEvent e) {
			
			List<Orientador> lista = oridao.getOrientadores();
			for (Orientador orientadores: lista)
			{
				if(cbOrientador.getSelectedItem().toString().equals(orientadores.getORIENT_NOME()))
				{
					orientadorID = orientadores.getORIENT_ID();
				}
					
			}
		}
	});
	
	//Listar os orientadores no combobox
	List<Orientador> lista = oridao.getOrientadores();
	cbOrientador.removeAllItems();
	cbOrientador.addItem("Selecione");
	for (Orientador orientadores: lista)
	{
		cbOrientador.addItem(orientadores.getORIENT_NOME());
	}
	
	//Listar os cursos no combobox
	cursoBox.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
            
				List<Curso> lista2 = curdao.getCursos();
				for (Curso cursos: lista2)
				{
					if(cursoBox.getSelectedItem().toString().equals(cursos.getCUR_DESCRICAO()))
					{
						tipo5 = cursos.getCUR_ID();
					}
						
				}
            }
		});
		
		//inicio da lista de cursos.
		List<Curso> lista2 = curdao.getCursos();
		cursoBox.removeAllItems();
		cursoBox.addItem("Selecione");
	
		for (Curso cursos: lista2)
		{
			cursoBox.addItem(cursos.getCUR_DESCRICAO());
		}		
	
	GroupLayout gl_panel_1 = new GroupLayout(panel_1);
	gl_panel_1.setHorizontalGroup(
		gl_panel_1.createParallelGroup(Alignment.LEADING)
			.addGroup(gl_panel_1.createSequentialGroup()
				.addContainerGap()
				.addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
					.addComponent(lblDisciplinasConcludas)
					.addComponent(disciplinaField, GroupLayout.PREFERRED_SIZE, 354, GroupLayout.PREFERRED_SIZE)
					.addGroup(gl_panel_1.createSequentialGroup()
						.addComponent(lblDataMatri)
						.addPreferredGap(ComponentPlacement.RELATED)
						.addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
							.addComponent(tc, 0, 251, Short.MAX_VALUE)
							.addGroup(gl_panel_1.createSequentialGroup()
								.addGap(8)
								.addComponent(matriculaField, GroupLayout.PREFERRED_SIZE, 133, GroupLayout.PREFERRED_SIZE)
								.addPreferredGap(ComponentPlacement.UNRELATED)
								.addComponent(lblTotalCredito))
							.addComponent(lblsistema))))
				.addPreferredGap(ComponentPlacement.RELATED)
				.addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
					.addGroup(gl_panel_1.createSequentialGroup()
						.addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
							.addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
								.addGroup(gl_panel_1.createSequentialGroup()
									.addComponent(creditoField, GroupLayout.PREFERRED_SIZE, 142, GroupLayout.PREFERRED_SIZE)
									.addGap(39))
								.addGroup(gl_panel_1.createSequentialGroup()
									.addComponent(cursoBox, 0, 177, Short.MAX_VALUE)
									.addPreferredGap(ComponentPlacement.RELATED)))
							.addGroup(gl_panel_1.createSequentialGroup()
								.addComponent(lblCurso)
								.addPreferredGap(ComponentPlacement.RELATED)))
						.addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
							.addGroup(gl_panel_1.createSequentialGroup()
								.addComponent(lblProficiencia)
								.addPreferredGap(ComponentPlacement.RELATED)
								.addComponent(cp, 0, 120, Short.MAX_VALUE))
							.addGroup(gl_panel_1.createSequentialGroup()
								.addGap(10)
								.addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
									.addComponent(lblOrientador)
									.addComponent(cbOrientador, 0, 211, Short.MAX_VALUE)))))
					.addComponent(lblDisciplinasPendentes)
					.addComponent(pendenciaField, GroupLayout.DEFAULT_SIZE, 402, Short.MAX_VALUE))
				.addContainerGap())
	);
	gl_panel_1.setVerticalGroup(
		gl_panel_1.createParallelGroup(Alignment.LEADING)
			.addGroup(gl_panel_1.createSequentialGroup()
				.addGap(23)
				.addGroup(gl_panel_1.createParallelGroup(Alignment.BASELINE)
					.addComponent(lblDataMatri)
					.addComponent(lblTotalCredito)
					.addComponent(creditoField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
					.addComponent(lblProficiencia)
					.addComponent(cp, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
					.addComponent(matriculaField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
				.addPreferredGap(ComponentPlacement.UNRELATED)
				.addGroup(gl_panel_1.createParallelGroup(Alignment.BASELINE)
					.addComponent(lblCurso)
					.addComponent(lblsistema)
					.addComponent(lblOrientador))
				.addPreferredGap(ComponentPlacement.RELATED)
				.addGroup(gl_panel_1.createParallelGroup(Alignment.BASELINE)
					.addComponent(cbOrientador, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
					.addComponent(cursoBox, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
					.addComponent(tc, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
				.addPreferredGap(ComponentPlacement.RELATED)
				.addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
					.addComponent(lblDisciplinasPendentes)
					.addGroup(gl_panel_1.createSequentialGroup()
						.addComponent(lblDisciplinasConcludas)
						.addPreferredGap(ComponentPlacement.RELATED)
						.addGroup(gl_panel_1.createParallelGroup(Alignment.BASELINE)
							.addComponent(pendenciaField, GroupLayout.DEFAULT_SIZE, 84, Short.MAX_VALUE)
							.addComponent(disciplinaField, GroupLayout.DEFAULT_SIZE, 85, Short.MAX_VALUE))))
				.addContainerGap())
	);
	panel_1.setLayout(gl_panel_1);
	panel.setLayout(gl_panel);
	contentPane.setLayout(gl_contentPane);
}

public void ClearFields(){
	
	RAField.setText("");
	nomeField.setText("");
	nascimentoField.setText("");
	cpfField.setText("");
	filiacaoField.setText("");
	enderecoField.setText("");
	telefoneField.setText("");
	matriculaField.setText("");
	disciplinaField.setText("");
	pendenciaField.setText("");
	creditoField.setText("");
	
}

public void BloquearFields(){
	
	RAField.setEditable(false);
	nomeField.setEditable(false);
	nascimentoField.setEditable(false);
	cpfField.setEditable(false);
	filiacaoField.setEditable(false);
	enderecoField.setEditable(false);
	telefoneField.setEditable(false);
	matriculaField.setEditable(false);
	disciplinaField.setEditable(false);
	pendenciaField.setEditable(false);
	creditoField.setEditable(false);
	cb.setEditable(false);
	cp.setEditable(false);
	tc.setEditable(false);
	cbOrientador.setEditable(false);
	cursoBox.setEditable(false);
}	

public void DesbloquearFields(){
	
	RAField.setEditable(true);
	nomeField.setEditable(true);
	nascimentoField.setEditable(true);
	cpfField.setEditable(true);
	filiacaoField.setEditable(true);
	enderecoField.setEditable(true);
	telefoneField.setEditable(true);
	matriculaField.setEditable(true);
	disciplinaField.setEditable(true);
	pendenciaField.setEditable(true);
	creditoField.setEditable(true);
	cb.setEditable(true);
	cp.setEditable(true);
	tc.setEditable(true);
	cbOrientador.setEditable(true);
	cursoBox.setEditable(true);
}

public void PosicionarCombobox(){
	
	cb.setSelectedItem("Selecione");
	cp.setSelectedItem("Selecione");
	tc.setSelectedItem("Selecione");
	cbOrientador.setSelectedItem("Selecione");
	cursoBox.setSelectedItem("Selecione");
}		

}

Testei aqui e não vi nenhum erro nessa página poderia enviar alguma imagem de erro.

http://megashare.megahd.com.br/38n upei nesse site o seu conteúdo caso tenha interesse em ver.

também não to entendendo esse erro… como se tivesse errado o tipo da variavel

Seu programa não está rodando?
Tira um print do local onde vc acha que tem o erro.
Vi apenas uma informação sobre o “Selecione” que está no JComboBox, porque ele espera um objeto e você seta uma String. Mas troca apenas com

Object selecione = “Selecione”;

Se você não conseguir específicar vai ficar difícil de tentar te ajudar.

consegui salvar tudo… só que queria botar um botão excluir no frame de pesquisa de usuário… como faço?

package view;

import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.border.BevelBorder;
import javax.swing.border.EmptyBorder;
import javax.swing.border.TitledBorder;
import javax.swing.table.DefaultTableModel;

import DAO.UsuarioDAO;
import model.Usuario;

import javax.swing.JTable;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JTextField;
import javax.swing.border.SoftBevelBorder;
import java.awt.Color;
import javax.swing.SwingConstants;
import java.awt.Font;
import javax.swing.ImageIcon;
import javax.swing.JLabel;

public class FramePesquisaUsuario extends JFrame {

	UsuarioDAO usuarioDao = new UsuarioDAO();
	private JPanel contentPane;

	DefaultTableModel model = new DefaultTableModel();
	private JTable table;
	private JTextField PesquisarField;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					FramePesquisaUsuario frame = new FramePesquisaUsuario();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public FramePesquisaUsuario() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 800, 600);
		contentPane = new JPanel();
		contentPane.setBackground(new Color(176, 224, 230));
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		setSize(800, 600);

		JMenuBar menuBar = new JMenuBar();
		setJMenuBar(menuBar);

		JMenu mnArquivo = new JMenu("Arquivo");
		menuBar.add(mnArquivo);

		JMenu mnAjuda = new JMenu("Ajuda");
		menuBar.add(mnAjuda);

		// inicio do botão listar
		JButton btnListar = new JButton("Listar Usuarios");
		btnListar.setIcon(new ImageIcon("C:\\Users\\Roberta Xavier\\Desktop\\icones projeto poo\\PUBLICACOES.jpg"));
		btnListar.setFont(new Font("Tahoma", Font.BOLD, 12));
		btnListar.setForeground(new Color(0, 0, 0));
		btnListar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {

				model.setNumRows(0);

				for (Usuario usuarios : usuarioDao.getUsuarios()) {
					model.addRow(new Object[] { usuarios.getUSU_ID(), usuarios.getUSU_NOME(), usuarios.getUSU_TEL(), usuarios.getUSU_TIPO() });
				}

			}
		});
		btnListar.setBounds(43, 474, 183, 23);
		contentPane.add(btnListar);
		// fim do botão listar

		table = new JTable(model);
		table.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));
		table.setEnabled(false);
		model.addColumn("Id");
		model.addColumn("Nome");
		model.addColumn("Telefone");
		model.addColumn("Tipo");

		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(23, 173, 730, 276);
		scrollPane.setBorder(new TitledBorder(new BevelBorder(BevelBorder.LOWERED, new Color(176, 196, 222), new Color(176, 196, 222), new Color(176, 196, 222), new Color(176, 196, 222)), "Usuarios Cadastrados", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(176, 196, 222)));
		scrollPane.setViewportView(table);
		contentPane.add(scrollPane);

		JButton btnVoltar = new JButton("Voltar");
		btnVoltar.setIcon(new ImageIcon("C:\\Users\\Roberta Xavier\\Desktop\\icones projeto poo\\voltar.png"));
		btnVoltar.setFont(new Font("Tahoma", Font.BOLD, 12));
		btnVoltar.setForeground(new Color(0, 0, 0));
		btnVoltar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {

				FrameMenu telaMenu = new FrameMenu();
				telaMenu.show();
				dispose();

			}
		});
		btnVoltar.setBounds(250, 474, 107, 23);
		contentPane.add(btnVoltar);

		JButton btnPesquisarOrientador = new JButton("Pesquisar");
		btnPesquisarOrientador.setIcon(new ImageIcon("C:\\Users\\Roberta Xavier\\Desktop\\icones projeto poo\\pesquisar1.png"));
		btnPesquisarOrientador.setFont(new Font("Tahoma", Font.BOLD, 12));
		btnPesquisarOrientador.setForeground(new Color(0, 0, 0));
		btnPesquisarOrientador.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {

				model.setNumRows(0);

				if (PesquisarField.getText().isEmpty()
						|| usuarioDao.pesquisarUsuarios(PesquisarField.getText()).isEmpty()) {
					JOptionPane.showMessageDialog(null, "Não há Usuario com esse nome! Informe um novo nome.");
					PesquisarField.setText("");
				} else {

					for (Usuario usuarios : usuarioDao.pesquisarUsuarios(PesquisarField.getText())) {
						model.addRow(
								new Object[] { usuarios.getUSU_ID(), usuarios.getUSU_NOME(), usuarios.getUSU_TEL(), usuarios.getUSU_TIPO() });
					}
					PesquisarField.setText("");
				}
			}

		});
		btnPesquisarOrientador.setBounds(375, 474, 137, 23);
		contentPane.add(btnPesquisarOrientador);

		PesquisarField = new JTextField();
		PesquisarField.setToolTipText("Digite o nome do Usuario");
		PesquisarField.setBounds(532, 475, 221, 23);
		contentPane.add(PesquisarField);
		PesquisarField.setColumns(10);
		
		JLabel label = new JLabel("");
		label.setIcon(new ImageIcon("C:\\Users\\Roberta Xavier\\Desktop\\icones projeto poo\\READ1 - Copia.png"));
		label.setBounds(23, 19, 730, 143);
		contentPane.add(label);

	}
}

ahh… e esqueci de dizer que o “erro” que tava dando antes… é que quando conectei no banco… tinha botado uma variável que não era necessária la… depois que apaguei funcionou normalmente.