Não consigo executar o meu projeto

java.awt.EventQueue.invokeLater(new Runnable() {
  public void run() {
    new TelaPrincipal().setVisible(true);
  }
});
}
run:
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Uncompilable code - cannot find symbol
  symbol:   method setViseble(boolean)
  location: variable tela of type Telas.TelaPrincipal
	at Telas.TelaLogin.jButton1ActionPerformed(TelaLogin.java:139)
	at Telas.TelaLogin.access$000(TelaLogin.java:11)
	at Telas.TelaLogin$1.actionPerformed(TelaLogin.java:50)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
	at java.awt.Component.processMouseEvent(Component.java:6539)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
	at java.awt.Component.processEvent(Component.java:6304)
	at java.awt.Container.processEvent(Container.java:2239)
	at java.awt.Component.dispatchEventImpl(Component.java:4889)
	at java.awt.Container.dispatchEventImpl(Container.java:2297)
	at java.awt.Component.dispatchEvent(Component.java:4711)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
	at java.awt.Container.dispatchEventImpl(Container.java:2283)
	at java.awt.Window.dispatchEventImpl(Window.java:2746)
	at java.awt.Component.dispatchEvent(Component.java:4711)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
	at java.awt.EventQueue$4.run(EventQueue.java:733)
	at java.awt.EventQueue$4.run(EventQueue.java:731)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Vc colocou o nome do método errado. O certo é setVisible(boolean).

Obrigado. Achei… mas está assim agora…

java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new TelaPrincipal().setVisible(true);
}
});

erros:

Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException
at javax.swing.ImageIcon.(ImageIcon.java:217)
at Telas.TelaPrincipal.initComponents(TelaPrincipal.java:173)
at Telas.TelaPrincipal.(TelaPrincipal.java:17)
at Telas.TelaLogin.jButton1ActionPerformed(TelaLogin.java:107)
at Telas.TelaLogin.access$000(TelaLogin.java:11)
at Telas.TelaLogin$1.actionPerformed(TelaLogin.java:50)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6539)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6304)
at java.awt.Container.processEvent(Container.java:2239)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
at java.awt.Container.dispatchEventImpl(Container.java:2283)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Provavelmente vc está tentando criar um ImageIcon à partir de uma referência null. Como está o código da linha 173 da classe TelaPrincipal?

vou passar todo o código da classe TelaPrincipal…

public class TelaPrincipal extends javax.swing.JFrame {

/**
 * Creates new form TelaPrincipal
 */
public TelaPrincipal() {
    initComponents();
    
    setExtendedState(MAXIMIZED_BOTH);
}

/**
 * This method is called from within the constructor to initialize the form.
 * WARNING: Do NOT modify this code. The content of this method is always
 * regenerated by the Form Editor.
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">                          
private void initComponents() {

    jPanel1 = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    jSeparator1 = new javax.swing.JSeparator();
    jLabel2 = new javax.swing.JLabel();
    jLabel5 = new javax.swing.JLabel();
    telaFundo = new javax.swing.JDesktopPane();
    jMenuBar1 = new javax.swing.JMenuBar();
    jMenu2 = new javax.swing.JMenu();
    jMenu8 = new javax.swing.JMenu();
    MenuCadEspecie = new javax.swing.JMenuItem();
    MenuConsEspecie = new javax.swing.JMenuItem();
    jMenu9 = new javax.swing.JMenu();
    MenuCadRaças = new javax.swing.JMenuItem();
    MenuConsRaça = new javax.swing.JMenuItem();
    jMenu10 = new javax.swing.JMenu();
    MenuCadAnimais = new javax.swing.JMenuItem();
    MenuConsAnimais = new javax.swing.JMenuItem();
    jMenu11 = new javax.swing.JMenu();
    MenuCadPastos = new javax.swing.JMenuItem();
    MenuConsPastos = new javax.swing.JMenuItem();
    jMenu12 = new javax.swing.JMenu();
    MenuCadFazendas = new javax.swing.JMenuItem();
    MenuConsFazendas = new javax.swing.JMenuItem();
    jMenu13 = new javax.swing.JMenu();
    MenuCadVacinas = new javax.swing.JMenuItem();
    MenuConsVacinas = new javax.swing.JMenuItem();
    jMenu14 = new javax.swing.JMenu();
    MenuCadProprietarios = new javax.swing.JMenuItem();
    MenuConsProprietarios = new javax.swing.JMenuItem();
    jMenu4 = new javax.swing.JMenu();
    MenuCadCatEra = new javax.swing.JMenuItem();
    MenuConsCatEra = new javax.swing.JMenuItem();
    jMenu6 = new javax.swing.JMenu();
    jMenu1 = new javax.swing.JMenu();
    jMenu15 = new javax.swing.JMenu();
    MenuCadVacinaçao = new javax.swing.JMenuItem();
    MenuConsVacinaçao = new javax.swing.JMenuItem();
    jMenu16 = new javax.swing.JMenu();
    jMenuItem17 = new javax.swing.JMenuItem();
    jMenuItem18 = new javax.swing.JMenuItem();
    MenuCadSaida = new javax.swing.JMenu();
    jMenu17 = new javax.swing.JMenu();
    MenuCadAquisicao = new javax.swing.JMenuItem();
    MenuConsAquisicao = new javax.swing.JMenuItem();
    jMenu18 = new javax.swing.JMenu();
    MenuCadSaidaVenda = new javax.swing.JMenuItem();
    MenuConsSaidaVenda = new javax.swing.JMenuItem();
    jMenu19 = new javax.swing.JMenu();
    MenuCadPerdasMortes = new javax.swing.JMenuItem();
    MenuConsPerdasMortes = new javax.swing.JMenuItem();
    jMenu5 = new javax.swing.JMenu();
    jMenu20 = new javax.swing.JMenu();
    jMenu21 = new javax.swing.JMenu();
    jMenu27 = new javax.swing.JMenu();
    jMenuItem25 = new javax.swing.JMenuItem();
    jMenuItem26 = new javax.swing.JMenuItem();
    jMenuItem27 = new javax.swing.JMenuItem();
    jMenuItem28 = new javax.swing.JMenuItem();
    jMenuItem29 = new javax.swing.JMenuItem();
    jMenuItem30 = new javax.swing.JMenuItem();
    MenuSair = new javax.swing.JMenu();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

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

    jLabel2.setText("Sistema Fazenda - Sistema desenvolvido por Osmar Júnior - Todos os direitos reservados 2022   @Sistech");

    javax.swing.GroupLayout telaFundoLayout = new javax.swing.GroupLayout(telaFundo);
    telaFundo.setLayout(telaFundoLayout);
    telaFundoLayout.setHorizontalGroup(
        telaFundoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGap(0, 0, Short.MAX_VALUE)
    );
    telaFundoLayout.setVerticalGroup(
        telaFundoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGap(0, 437, Short.MAX_VALUE)
    );

    jMenu2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/cadastro.png"))); // NOI18N
    jMenu2.setText("  Cadastros        ");

    jMenu8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Especie.png"))); // NOI18N
    jMenu8.setText("Espécies");

    MenuCadEspecie.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Cadastro-20x20.png"))); // NOI18N
    MenuCadEspecie.setText("Cadastrar");
    jMenu8.add(MenuCadEspecie);

    MenuConsEspecie.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/consulta-20x20.png"))); // NOI18N
    MenuConsEspecie.setText("Consultar");
    jMenu8.add(MenuConsEspecie);

    jMenu2.add(jMenu8);

    jMenu9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Raça.png"))); // NOI18N
    jMenu9.setText("Raças");

    MenuCadRaças.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Cadastro-20x20.png"))); // NOI18N
    MenuCadRaças.setText("Cadastrar");
    jMenu9.add(MenuCadRaças);

    MenuConsRaça.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/consulta-20x20.png"))); // NOI18N
    MenuConsRaça.setText("Consultar");
    jMenu9.add(MenuConsRaça);

    jMenu2.add(jMenu9);

    jMenu10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Categoria.png"))); // NOI18N
    jMenu10.setText("Animais");

    MenuCadAnimais.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Cadastro-20x20.png"))); // NOI18N
    MenuCadAnimais.setText("Cadastrar");
    jMenu10.add(MenuCadAnimais);

    MenuConsAnimais.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/consulta-20x20.png"))); // NOI18N
    MenuConsAnimais.setText("Consultar");
    jMenu10.add(MenuConsAnimais);

    jMenu2.add(jMenu10);

    jMenu11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Pasto.png"))); // NOI18N
    jMenu11.setText("Pastos");

    MenuCadPastos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Cadastro-20x20.png"))); // NOI18N
    MenuCadPastos.setText("Cadastrar");
    jMenu11.add(MenuCadPastos);

    MenuConsPastos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Telas/consulta-20x20.png"))); // NOI18N
    MenuConsPastos.setText("Consultar");
    jMenu11.add(MenuConsPastos);

    jMenu2.add(jMenu11);

    jMenu12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Fazenda.png"))); // NOI18N
    jMenu12.setText("Fazendas");

    MenuCadFazendas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Cadastro-20x20.png"))); // NOI18N
    MenuCadFazendas.setText("Cadastrar");
    jMenu12.add(MenuCadFazendas);

    MenuConsFazendas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/consulta-20x20.png"))); // NOI18N
    MenuConsFazendas.setText("Consultar");
    jMenu12.add(MenuConsFazendas);

    jMenu2.add(jMenu12);

    jMenu13.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Vacina.png"))); // NOI18N
    jMenu13.setText("Vacinas");

    MenuCadVacinas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Cadastro-20x20.png"))); // NOI18N
    MenuCadVacinas.setText("Cadastrar");
    jMenu13.add(MenuCadVacinas);

    MenuConsVacinas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/consulta-20x20.png"))); // NOI18N
    MenuConsVacinas.setText("Consultar");
    jMenu13.add(MenuConsVacinas);

    jMenu2.add(jMenu13);

    jMenu14.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Proprietário.png"))); // NOI18N
    jMenu14.setText("Proprietários");

    MenuCadProprietarios.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Cadastro-20x20.png"))); // NOI18N
    MenuCadProprietarios.setText("Cadastrar");
    jMenu14.add(MenuCadProprietarios);

    MenuConsProprietarios.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Telas/consulta-20x20.png"))); // NOI18N
    MenuConsProprietarios.setText("Consultar");
    jMenu14.add(MenuConsProprietarios);

    jMenu2.add(jMenu14);

    jMenu4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Animal.png"))); // NOI18N
    jMenu4.setText("Categorias/era");

    MenuCadCatEra.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Cadastro-20x20.png"))); // NOI18N
    MenuCadCatEra.setText("Cadastro");
    jMenu4.add(MenuCadCatEra);

    MenuConsCatEra.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/consulta-20x20.png"))); // NOI18N
    MenuConsCatEra.setText("Consulta");
    jMenu4.add(MenuConsCatEra);

    jMenu2.add(jMenu4);

    jMenu6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Funcionario.png"))); // NOI18N
    jMenu6.setText("Funcionarios");
    jMenu2.add(jMenu6);

    jMenuBar1.add(jMenu2);

    jMenu1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Manejo.png"))); // NOI18N
    jMenu1.setText("Manejo         ");

    jMenu15.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Vacina.png"))); // NOI18N
    jMenu15.setText("Vacinações");

    MenuCadVacinaçao.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Cadastro-20x20.png"))); // NOI18N
    MenuCadVacinaçao.setText("Cadastrar");
    jMenu15.add(MenuCadVacinaçao);

    MenuConsVacinaçao.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/consulta-20x20.png"))); // NOI18N
    MenuConsVacinaçao.setText("Consultar");
    jMenu15.add(MenuConsVacinaçao);

    jMenu1.add(jMenu15);

    jMenu16.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Balança-20x20.png"))); // NOI18N
    jMenu16.setText("Pesagem");

    jMenuItem17.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Cadastro-20x20.png"))); // NOI18N
    jMenuItem17.setText("Cadastrar");
    jMenu16.add(jMenuItem17);

    jMenuItem18.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/consulta-20x20.png"))); // NOI18N
    jMenuItem18.setText("Consultar");
    jMenu16.add(jMenuItem18);

    jMenu1.add(jMenu16);

    jMenuBar1.add(jMenu1);

    MenuCadSaida.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Movimentação.png"))); // NOI18N
    MenuCadSaida.setText("Movimentação         ");

    jMenu17.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Aquisição-20x20.png"))); // NOI18N
    jMenu17.setText("Aquisição");

    MenuCadAquisicao.setIcon(new javax.swing.ImageIcon("C:\\Users\\Adriana\\Pictures\\Saved Pictures\\Cadastro-20x20.png")); // NOI18N
    MenuCadAquisicao.setText("Cadastrar");
    MenuCadAquisicao.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuCadAquisicaoActionPerformed(evt);
        }
    });
    jMenu17.add(MenuCadAquisicao);

    MenuConsAquisicao.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/consulta-20x20.png"))); // NOI18N
    MenuConsAquisicao.setText("Consultar");
    jMenu17.add(MenuConsAquisicao);

    MenuCadSaida.add(jMenu17);

    jMenu18.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Saida.png"))); // NOI18N
    jMenu18.setText("Saida/Venda");

    MenuCadSaidaVenda.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Cadastro-20x20.png"))); // NOI18N
    MenuCadSaidaVenda.setText("Cadastrar");
    jMenu18.add(MenuCadSaidaVenda);

    MenuConsSaidaVenda.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/consulta-20x20.png"))); // NOI18N
    MenuConsSaidaVenda.setText("Consultar");
    jMenu18.add(MenuConsSaidaVenda);

    MenuCadSaida.add(jMenu18);

    jMenu19.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Perda.png"))); // NOI18N
    jMenu19.setText("Perdas/Mortes");

    MenuCadPerdasMortes.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Cadastro-20x20.png"))); // NOI18N
    MenuCadPerdasMortes.setText("Cadastrar");
    jMenu19.add(MenuCadPerdasMortes);

    MenuConsPerdasMortes.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/consulta-20x20.png"))); // NOI18N
    MenuConsPerdasMortes.setText("Consultar");
    jMenu19.add(MenuConsPerdasMortes);

    MenuCadSaida.add(jMenu19);

    jMenuBar1.add(MenuCadSaida);

    jMenu5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Fluxo Caixa.png"))); // NOI18N
    jMenu5.setText("Financeiro            ");

    jMenu20.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Fluxo Caixa.png"))); // NOI18N
    jMenu20.setText("Fluxo de Caixa");
    jMenu5.add(jMenu20);

    jMenu21.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Receber.png"))); // NOI18N
    jMenu21.setText("Pagar e Receber");
    jMenu5.add(jMenu21);

    jMenuBar1.add(jMenu5);

    jMenu27.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Relatorio.jpg"))); // NOI18N
    jMenu27.setText("Relatório              ");

    jMenuItem25.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Inventario.png"))); // NOI18N
    jMenuItem25.setText("Inventário de Animais");
    jMenu27.add(jMenuItem25);

    jMenuItem26.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Balança-20x20.png"))); // NOI18N
    jMenuItem26.setText("Pesagem");
    jMenu27.add(jMenuItem26);

    jMenuItem27.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Pesagem.png"))); // NOI18N
    jMenuItem27.setText("Venda-Ganho Peso");
    jMenu27.add(jMenuItem27);

    jMenuItem28.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Venda-Financeiro.png"))); // NOI18N
    jMenuItem28.setText("Venda-Financeiro");
    jMenu27.add(jMenuItem28);

    jMenuItem29.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Custo.png"))); // NOI18N
    jMenuItem29.setText("Custo Mês");
    jMenu27.add(jMenuItem29);

    jMenuItem30.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Movimentaçao-20x20.png"))); // NOI18N
    jMenuItem30.setText("Movimentações mês");
    jMenu27.add(jMenuItem30);

    jMenuBar1.add(jMenu27);

    MenuSair.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Sair-2.png"))); // NOI18N
    MenuSair.setText("Sair");
    jMenuBar1.add(MenuSair);

    setJMenuBar(jMenuBar1);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
        layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(layout.createSequentialGroup()
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGap(389, 389, 389))
        .addGroup(layout.createSequentialGroup()
            .addComponent(jSeparator1)
            .addGap(333, 333, 333))
        .addGroup(layout.createSequentialGroup()
            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jLabel2)
            .addGap(109, 109, 109)
            .addComponent(jLabel5)
            .addGap(336, 336, 336))
        .addGroup(layout.createSequentialGroup()
            .addComponent(telaFundo)
            .addContainerGap())
    );
    layout.setVerticalGroup(
        layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
            .addComponent(telaFundo)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
            .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(jLabel2)
                .addComponent(jLabel5))
            .addGap(2, 2, 2)
            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
    );

    pack();
}// </editor-fold>                        

private void MenuCadAquisicaoActionPerformed(java.awt.event.ActionEvent evt) {                                                 
    // TODO add your handling code here:
}                                                

/**
 * @param args the command line arguments
 */
public static void main(String args[]) {
    /* Set the Nimbus look and feel */
    //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
    /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
     * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
     */
    try {
        for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
            if ("Windows".equals(info.getName())) {
                javax.swing.UIManager.setLookAndFeel(info.getClassName());
                break;
            }
        }
    } catch (ClassNotFoundException ex) {
        java.util.logging.Logger.getLogger(TelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
    } catch (InstantiationException ex) {
        java.util.logging.Logger.getLogger(TelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
    } catch (IllegalAccessException ex) {
        java.util.logging.Logger.getLogger(TelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
    } catch (javax.swing.UnsupportedLookAndFeelException ex) {
        java.util.logging.Logger.getLogger(TelaPrincipal.cleass.getName()).log(java.util.logging.Level.SEVERE, null, ex);
    }
    //</editor-fold>

    /* Create and display the form */
    java.awt.EventQueue.invokeLater(new Runnable() {
        public void run() {
            new TelaPrincipal().setVisible(true);
            }
             });
}

Passar o código todo não adianta. Qual é a linha 173?

O ideal seria vc colocar um breakpoint nessa linha, rodar no modo debug e ver qual variável está null.

Muito obrigado!

Vou verificar