public void navigate(NavigationEvent event) {
        System.out.println("Navegar para: " + event.getDestination());
        
        
        String dest = event.getDestination();
        Tela tela = null;
        if(dest.equals("TelaLogin")){
            tela = navegarTelaLogin();
        }
        else if(dest.equals("TelaPrincipal")){
            tela = navegarTelaPrincipal();
        }
        else{
            System.err.println("Destino: " + event.getDestination() + " não encontrado!");
            return;
        }
        
        if(tela != null && tela != telaAtual){   
            tela.setNavigableParent(this);
            telaAtual = tela;
            telaAtual.setPreferredSize(this.getPreferredSize());
            
            this.getContentPane().removeAll();
            this.getContentPane().add(telaAtual);
            
            this.pack();
        }
    }