@SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        buttonGroup2 = new javax.swing.ButtonGroup();
        PopupMenuRetorna = new javax.swing.JPopupMenu();
        MnItRetorna = new javax.swing.JMenuItem();
        TabbedPaneCliente = new javax.swing.JTabbedPane();
        PnCadastro = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();
        TfNomeFisica = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        RbMasculino = new javax.swing.JRadioButton();
        RbFeminino = new javax.swing.JRadioButton();
        try{
            data = new MaskFormatter("##/##/####");
        } catch(Exception ex){
            JOptionPane.showMessageDialog(null, "Nao foi possivel localizar");
        }
        TfDtNasc = new JFormattedTextField(data);
        jLabel15 = new javax.swing.JLabel();
        try{
            rg = new MaskFormatter("##.###.###-##");
        } catch(Exception ex){
            JOptionPane.showMessageDialog(null, "Nao foi possivel localizar");
        }
        TfNrRG = new JFormattedTextField(rg);
        jLabel5 = new javax.swing.JLabel();
        try{
            cpf = new MaskFormatter("###.###.###-##");
        } catch(Exception ex){
            JOptionPane.showMessageDialog(null, "Nao foi possivel localizar");
        }
        TfNrCPF = new JFormattedTextField(cpf);
        jLabel6 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        RbPeFisica = new javax.swing.JRadioButton();
        jLabel1 = new javax.swing.JLabel();
        TfCodigo = new javax.swing.JTextField();
        jSeparator1 = new javax.swing.JSeparator();
        RbPeJuridica = new javax.swing.JRadioButton();
        jLabel7 = new javax.swing.JLabel();
        TfNomeFantasia = new javax.swing.JTextField();
        jLabel8 = new javax.swing.JLabel();
        TfRazaoSocial = new javax.swing.JTextField();
        jLabel9 = new javax.swing.JLabel();
        try{
            cnpj = new MaskFormatter("##.###.###/####-##");
        } catch(Exception ex){
            JOptionPane.showMessageDialog(null, "Nao foi possivel localizar");
        }
        TfNrCNPJ = new JFormattedTextField(cnpj);
        jLabel16 = new javax.swing.JLabel();
        try{
            data = new MaskFormatter("##/##/####");
        } catch(Exception ex){
            JOptionPane.showMessageDialog(null, "Nao foi possivel localizar");
        }
        TfDtFund = new JFormattedTextField(data);
        jLabel14 = new javax.swing.JLabel();
        try{
            data = new MaskFormatter("##/##/####");
        } catch(Exception ex){
            JOptionPane.showMessageDialog(null, "Nao foi possivel localizar");
        }
        TfDtCadastro = new JFormattedTextField(data);
        jLabel10 = new javax.swing.JLabel();
        TfLogradouro = new javax.swing.JTextField();
        jLabel11 = new javax.swing.JLabel();
        TfNumero = new javax.swing.JTextField();
        jLabel12 = new javax.swing.JLabel();
        TfBairro = new javax.swing.JTextField();
        jLabel13 = new javax.swing.JLabel();
        jSeparator2 = new javax.swing.JSeparator();
        jLabel17 = new javax.swing.JLabel();
        CbEstado = new javax.swing.JComboBox();
        jLabel18 = new javax.swing.JLabel();
        CbCidade = new javax.swing.JComboBox();
        jSeparator3 = new javax.swing.JSeparator();
        jLabel23 = new javax.swing.JLabel();
        try{
            fone = new MaskFormatter("(##)####-####");
        } catch(Exception ex){
            JOptionPane.showMessageDialog(null, "Nao foi possivel localizar");
        }
        TfNrTelefone = new JFormattedTextField(fone);
        jLabel20 = new javax.swing.JLabel();
        jCbOpTelefone = new javax.swing.JComboBox();
        jBtAddTelefone = new javax.swing.JButton();
        jBtDelTelefone = new javax.swing.JButton();
        jScrollPane2 = new javax.swing.JScrollPane();
        TbTelefone = new javax.swing.JTable();
        jLabel24 = new javax.swing.JLabel();
        TfDsEmail = new javax.swing.JTextField();
        jLabel25 = new javax.swing.JLabel();
        jCbOpEmail = new javax.swing.JComboBox();
        jBtAddEmail = new javax.swing.JButton();
        jBtDelEmail = new javax.swing.JButton();
        jScrollPane3 = new javax.swing.JScrollPane();
        TbEmail = new javax.swing.JTable();
        PnBotoes = new javax.swing.JPanel();
        BtGravar = new javax.swing.JButton();
        BtAlterar = new javax.swing.JButton();
        BtIncluir = new javax.swing.JButton();
        BtExcluir = new javax.swing.JButton();
        BtCancelar = new javax.swing.JButton();
        BtCadEstado = new javax.swing.JButton();
        BtCadCidade = new javax.swing.JButton();
        try{
            cep = new MaskFormatter("#####-###");
        } catch(Exception ex){
            JOptionPane.showMessageDialog(null, "Nao foi possivel localizar");
        }
        TfCEP = new JFormattedTextField(cep);
        LbCPFValido = new javax.swing.JLabel();
        LbCNPJValido = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        LbNotificacao = new javax.swing.JLabel();
        PnConsulta = new javax.swing.JPanel();
        jLabel19 = new javax.swing.JLabel();
        CbPesquisa = new javax.swing.JComboBox();
        CbPesquisa2 = new javax.swing.JComboBox();
        TfPesquisa = new javax.swing.JTextField();
        BtPesquisa = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        TbPesquisa = new javax.swing.JTable();

        MnItRetorna.setText("Carregar dados");
        MnItRetorna.setComponentPopupMenu(PopupMenuRetorna);
        MnItRetorna.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MnItRetornaActionPerformed(evt);
            }
        });
        PopupMenuRetorna.add(MnItRetorna);

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Cliente - Software Loja da Fátima");
        setResizable(false);
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent evt) {
                formWindowClosing(evt);
            }
        });

        PnCadastro.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel3.setText("Nome*");
        PnCadastro.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 58, -1, -1));

        TfNomeFisica.setName("NM_PESSOA"); // NOI18N
        TfNomeFisica.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                TfNomeFisicaKeyTyped(evt);
            }
        });
        PnCadastro.add(TfNomeFisica, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 78, 406, -1));

        jLabel4.setText("Sexo*");
        PnCadastro.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 104, -1, -1));

        buttonGroup2.add(RbMasculino);
        RbMasculino.setSelected(true);
        RbMasculino.setText("Masculino");
        PnCadastro.add(RbMasculino, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 121, -1, -1));

        buttonGroup2.add(RbFeminino);
        RbFeminino.setText("Feminino");
        PnCadastro.add(RbFeminino, new org.netbeans.lib.awtextra.AbsoluteConstraints(81, 121, -1, -1));

        TfDtNasc.setName("DT_NASC"); // NOI18N
        TfDtNasc.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                TfDtNascFocusLost(evt);
            }
        });
        PnCadastro.add(TfDtNasc, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 188, 109, -1));

        jLabel15.setText("Data de Nascimento*");
        PnCadastro.add(jLabel15, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 168, -1, -1));

        TfNrRG.setName("NR_RG"); // NOI18N
        TfNrRG.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                TfNrRGFocusLost(evt);
            }
        });
        PnCadastro.add(TfNrRG, new org.netbeans.lib.awtextra.AbsoluteConstraints(296, 122, 120, -1));

        jLabel5.setText("Nº RG");
        PnCadastro.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(296, 104, -1, -1));

        TfNrCPF.setName("NR_CPF"); // NOI18N
        TfNrCPF.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                TfNrCPFFocusLost(evt);
            }
        });
        TfNrCPF.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                TfNrCPFKeyPressed(evt);
            }
            public void keyReleased(java.awt.event.KeyEvent evt) {
                TfNrCPFKeyReleased(evt);
            }
            public void keyTyped(java.awt.event.KeyEvent evt) {
                TfNrCPFKeyTyped(evt);
            }
        });
        PnCadastro.add(TfNrCPF, new org.netbeans.lib.awtextra.AbsoluteConstraints(166, 122, 120, -1));

        jLabel6.setText("Nº CPF*");
        PnCadastro.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(166, 104, -1, -1));

        jLabel2.setText("Tipo de Pessoa");
        PnCadastro.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(422, 11, -1, -1));

        buttonGroup1.add(RbPeFisica);
        RbPeFisica.setSelected(true);
        RbPeFisica.setText("Física");
        RbPeFisica.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                RbPeFisicaActionPerformed(evt);
            }
        });
        PnCadastro.add(RbPeFisica, new org.netbeans.lib.awtextra.AbsoluteConstraints(379, 31, -1, -1));

        jLabel1.setText("Código");
        PnCadastro.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 11, -1, -1));

        TfCodigo.setEditable(false);
        TfCodigo.setName("CD_PESSOA"); // NOI18N
        PnCadastro.add(TfCodigo, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 32, 100, -1));

        jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);
        PnCadastro.add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(448, 31, -1, 162));

        buttonGroup1.add(RbPeJuridica);
        RbPeJuridica.setText("Jurídica");
        RbPeJuridica.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                RbPeJuridicaActionPerformed(evt);
            }
        });
        PnCadastro.add(RbPeJuridica, new org.netbeans.lib.awtextra.AbsoluteConstraints(468, 31, -1, -1));

        jLabel7.setText("Nome Fantasia*");
        PnCadastro.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(468, 61, -1, -1));

        TfNomeFantasia.setName("NM_FANTASIA"); // NOI18N
        TfNomeFantasia.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                TfNomeFantasiaKeyTyped(evt);
            }
        });
        PnCadastro.add(TfNomeFantasia, new org.netbeans.lib.awtextra.AbsoluteConstraints(468, 81, 447, -1));

        jLabel8.setText("Razao Social");
        PnCadastro.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(468, 102, -1, -1));

        TfRazaoSocial.setName("DS_RAZAO_SOCIAL"); // NOI18N
        TfRazaoSocial.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                TfRazaoSocialKeyTyped(evt);
            }
        });
        PnCadastro.add(TfRazaoSocial, new org.netbeans.lib.awtextra.AbsoluteConstraints(468, 122, 447, -1));

        jLabel9.setText("Nr. CNPJ*");
        PnCadastro.add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(468, 153, -1, -1));

        TfNrCNPJ.setName("NR_CNPJ"); // NOI18N
        TfNrCNPJ.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                TfNrCNPJFocusLost(evt);
            }
        });
        TfNrCNPJ.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                TfNrCNPJKeyReleased(evt);
            }
            public void keyTyped(java.awt.event.KeyEvent evt) {
                TfNrCNPJKeyTyped(evt);
            }
        });
        PnCadastro.add(TfNrCNPJ, new org.netbeans.lib.awtextra.AbsoluteConstraints(468, 173, 108, -1));

        jLabel16.setText("Data de Fundação");
        PnCadastro.add(jLabel16, new org.netbeans.lib.awtextra.AbsoluteConstraints(594, 153, -1, -1));

        TfDtFund.setName("DT_NASC"); // NOI18N
        TfDtFund.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                TfDtFundFocusLost(evt);
            }
        });
        PnCadastro.add(TfDtFund, new org.netbeans.lib.awtextra.AbsoluteConstraints(594, 173, 108, -1));

        jLabel14.setText("Data do Cadastro");
        PnCadastro.add(jLabel14, new org.netbeans.lib.awtextra.AbsoluteConstraints(128, 11, -1, -1));

        TfDtCadastro.setEditable(false);
        TfDtCadastro.setName("DT_CADASTRO"); // NOI18N
        PnCadastro.add(TfDtCadastro, new org.netbeans.lib.awtextra.AbsoluteConstraints(128, 32, 100, -1));

        jLabel10.setText("Rua/Avenida*");
        PnCadastro.add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 232, -1, -1));

        TfLogradouro.setName("DS_RUA"); // NOI18N
        TfLogradouro.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                TfLogradouroKeyTyped(evt);
            }
        });
        PnCadastro.add(TfLogradouro, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 252, 408, -1));

        jLabel11.setText("Numero*");
        PnCadastro.add(jLabel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 278, -1, -1));

        TfNumero.setName("DS_NUMERO"); // NOI18N
        TfNumero.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                TfNumeroKeyTyped(evt);
            }
        });
        PnCadastro.add(TfNumero, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 298, 126, -1));

        jLabel12.setText("Bairro*");
        PnCadastro.add(jLabel12, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 324, -1, -1));

        TfBairro.setName("DS_BAIRRO"); // NOI18N
        TfBairro.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                TfBairroKeyTyped(evt);
            }
        });
        PnCadastro.add(TfBairro, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 344, 272, -1));

        jLabel13.setText("CEP*");
        PnCadastro.add(jLabel13, new org.netbeans.lib.awtextra.AbsoluteConstraints(178, 278, -1, -1));
        PnCadastro.add(jSeparator2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 219, 946, -1));

        jLabel17.setText("Estado*");
        PnCadastro.add(jLabel17, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 370, -1, -1));

        CbEstado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CbEstadoActionPerformed(evt);
            }
        });
        PnCadastro.add(CbEstado, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 391, 150, -1));

        jLabel18.setText("Cidade*");
        PnCadastro.add(jLabel18, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 419, -1, -1));

        CbCidade.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CbCidadeActionPerformed(evt);
            }
        });
        PnCadastro.add(CbCidade, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 440, 150, -1));

        jSeparator3.setOrientation(javax.swing.SwingConstants.VERTICAL);
        PnCadastro.add(jSeparator3, new org.netbeans.lib.awtextra.AbsoluteConstraints(448, 232, -1, 252));

        jLabel23.setText("Nr. Telefone:");
        PnCadastro.add(jLabel23, new org.netbeans.lib.awtextra.AbsoluteConstraints(468, 232, -1, -1));

        TfNrTelefone.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                TfNrTelefoneFocusLost(evt);
            }
        });
        PnCadastro.add(TfNrTelefone, new org.netbeans.lib.awtextra.AbsoluteConstraints(468, 252, 163, -1));

        jLabel20.setText("Tipo");
        PnCadastro.add(jLabel20, new org.netbeans.lib.awtextra.AbsoluteConstraints(468, 278, -1, -1));

        jCbOpTelefone.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "PRINCIPAL", "CELULAR", "ALTERNATIVO" }));
        PnCadastro.add(jCbOpTelefone, new org.netbeans.lib.awtextra.AbsoluteConstraints(468, 298, 186, -1));

        jBtAddTelefone.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/lojadafatima/Icones/adicionar.png"))); // NOI18N
        jBtAddTelefone.setText("Adicionar");
        jBtAddTelefone.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtAddTelefoneActionPerformed(evt);
            }
        });
        PnCadastro.add(jBtAddTelefone, new org.netbeans.lib.awtextra.AbsoluteConstraints(468, 324, -1, -1));

        jBtDelTelefone.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/lojadafatima/Icones/deletar.png"))); // NOI18N
        jBtDelTelefone.setText("Excluir");
        jBtDelTelefone.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtDelTelefoneActionPerformed(evt);
            }
        });
        PnCadastro.add(jBtDelTelefone, new org.netbeans.lib.awtextra.AbsoluteConstraints(571, 324, -1, -1));

        TbTelefone.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Sel.", "Nr. Telefone", "Tipo"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Boolean.class, java.lang.Object.class, java.lang.Object.class
            };
            boolean[] canEdit = new boolean [] {
                true, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        TbTelefone.getTableHeader().setReorderingAllowed(false);
        jScrollPane2.setViewportView(TbTelefone);

        PnCadastro.add(jScrollPane2, new org.netbeans.lib.awtextra.AbsoluteConstraints(672, 232, 284, 115));

        jLabel24.setText("E-mail");
        PnCadastro.add(jLabel24, new org.netbeans.lib.awtextra.AbsoluteConstraints(468, 367, -1, -1));

        TfDsEmail.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                TfDsEmailKeyTyped(evt);
            }
        });
        PnCadastro.add(TfDsEmail, new org.netbeans.lib.awtextra.AbsoluteConstraints(468, 387, 186, -1));

        jLabel25.setText("Tipo");
        PnCadastro.add(jLabel25, new org.netbeans.lib.awtextra.AbsoluteConstraints(468, 413, -1, -1));

        jCbOpEmail.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "PRINCIPAL", "ALTERNATIVO" }));
        PnCadastro.add(jCbOpEmail, new org.netbeans.lib.awtextra.AbsoluteConstraints(468, 433, 186, -1));

        jBtAddEmail.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/lojadafatima/Icones/adicionar.png"))); // NOI18N
        jBtAddEmail.setText("Adicionar");
        jBtAddEmail.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtAddEmailActionPerformed(evt);
            }
        });
        PnCadastro.add(jBtAddEmail, new org.netbeans.lib.awtextra.AbsoluteConstraints(468, 459, -1, -1));

        jBtDelEmail.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/lojadafatima/Icones/deletar.png"))); // NOI18N
        jBtDelEmail.setText("Excluir");
        jBtDelEmail.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtDelEmailActionPerformed(evt);
            }
        });
        PnCadastro.add(jBtDelEmail, new org.netbeans.lib.awtextra.AbsoluteConstraints(571, 459, -1, -1));

        TbEmail.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Sel.", "E-mail", "Tipo"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Boolean.class, java.lang.Object.class, java.lang.Object.class
            };
            boolean[] canEdit = new boolean [] {
                true, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        TbEmail.getTableHeader().setReorderingAllowed(false);
        jScrollPane3.setViewportView(TbEmail);

        PnCadastro.add(jScrollPane3, new org.netbeans.lib.awtextra.AbsoluteConstraints(672, 369, 284, 115));

        BtGravar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/lojadafatima/Icones/salvar.png"))); // NOI18N
        BtGravar.setText("Gravar");
        BtGravar.setName("Gravar"); // NOI18N
        BtGravar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtGravarActionPerformed(evt);
            }
        });

        BtAlterar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/lojadafatima/Icones/editar.png"))); // NOI18N
        BtAlterar.setText("Alterar Dados");
        BtAlterar.setName("Alterar"); // NOI18N
        BtAlterar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtAlterarActionPerformed(evt);
            }
        });

        BtIncluir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/lojadafatima/Icones/adicionar.png"))); // NOI18N
        BtIncluir.setText("Cadastrar Cliente");
        BtIncluir.setName("Incluir"); // NOI18N
        BtIncluir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtIncluirActionPerformed(evt);
            }
        });

        BtExcluir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/lojadafatima/Icones/lixeira.png"))); // NOI18N
        BtExcluir.setText("Excluir Cliente");
        BtExcluir.setName("Excluir"); // NOI18N
        BtExcluir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtExcluirActionPerformed(evt);
            }
        });

        BtCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/lojadafatima/Icones/cancelar.png"))); // NOI18N
        BtCancelar.setText("Cancelar");
        BtCancelar.setName("Cancelar"); // NOI18N
        BtCancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtCancelarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout PnBotoesLayout = new javax.swing.GroupLayout(PnBotoes);
        PnBotoes.setLayout(PnBotoesLayout);
        PnBotoesLayout.setHorizontalGroup(
            PnBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PnBotoesLayout.createSequentialGroup()
                .addComponent(BtIncluir, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(18, 18, 18)
                .addComponent(BtAlterar, javax.swing.GroupLayout.PREFERRED_SIZE, 172, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(BtExcluir, javax.swing.GroupLayout.PREFERRED_SIZE, 178, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(BtGravar, javax.swing.GroupLayout.PREFERRED_SIZE, 162, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(BtCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 171, javax.swing.GroupLayout.PREFERRED_SIZE))
        );
        PnBotoesLayout.setVerticalGroup(
            PnBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(BtIncluir, javax.swing.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE)
            .addComponent(BtAlterar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(BtExcluir, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(BtGravar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(BtCancelar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        PnCadastro.add(PnBotoes, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 495, 946, -1));

        BtCadEstado.setText("Adicionar Estado");
        BtCadEstado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtCadEstadoActionPerformed(evt);
            }
        });
        PnCadastro.add(BtCadEstado, new org.netbeans.lib.awtextra.AbsoluteConstraints(191, 390, -1, -1));

        BtCadCidade.setText("Adicionar Cidade");
        BtCadCidade.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtCadCidadeActionPerformed(evt);
            }
        });
        PnCadastro.add(BtCadCidade, new org.netbeans.lib.awtextra.AbsoluteConstraints(191, 439, -1, -1));

        TfCEP.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                TfCEPFocusLost(evt);
            }
        });
        PnCadastro.add(TfCEP, new org.netbeans.lib.awtextra.AbsoluteConstraints(178, 298, 104, -1));

        LbCPFValido.setText("Informa CPF valido");
        PnCadastro.add(LbCPFValido, new org.netbeans.lib.awtextra.AbsoluteConstraints(166, 148, -1, -1));

        LbCNPJValido.setText("Informa CNPJ valido");
        PnCadastro.add(LbCNPJValido, new org.netbeans.lib.awtextra.AbsoluteConstraints(468, 199, -1, -1));

        LbNotificacao.setText(" ");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addComponent(LbNotificacao)
                .addGap(0, 0, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(LbNotificacao)
        );

        PnCadastro.add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 539, 946, -1));

        TabbedPaneCliente.addTab("Cadastro", PnCadastro);

        PnConsulta.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel19.setText("Filtro da Pesquisa");
        PnConsulta.add(jLabel19, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 11, -1, -1));

        CbPesquisa.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Geral", "Codigo", "Nome/Nome Fantasia", "CPF/CNPJ" }));
        CbPesquisa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CbPesquisaActionPerformed(evt);
            }
        });
        PnConsulta.add(CbPesquisa, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 33, 200, -1));

        PnConsulta.add(CbPesquisa2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 62, 200, -1));

        TfPesquisa.setEditable(false);
        PnConsulta.add(TfPesquisa, new org.netbeans.lib.awtextra.AbsoluteConstraints(216, 33, 500, -1));

        BtPesquisa.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/lojadafatima/Icones/buscar.png"))); // NOI18N
        BtPesquisa.setText("Pesquisar");
        BtPesquisa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtPesquisaActionPerformed(evt);
            }
        });
        PnConsulta.add(BtPesquisa, new org.netbeans.lib.awtextra.AbsoluteConstraints(722, 31, 234, -1));

        TbPesquisa.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Codigo", "Nome/Nome Fantasia", "CPF/CNPJ", "Data do Cadastro"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        TbPesquisa.setComponentPopupMenu(PopupMenuRetorna);
        TbPesquisa.getTableHeader().setReorderingAllowed(false);
        jScrollPane1.setViewportView(TbPesquisa);

        PnConsulta.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 96, 946, 452));

        TabbedPaneCliente.addTab("Consulta", PnConsulta);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(TabbedPaneCliente)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(TabbedPaneCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 587, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 0, Short.MAX_VALUE))
        );

        pack();
        setLocationRelativeTo(null);
    }// </editor-fold>//GEN-END:initComponents