how can i listen to a thread (while ???) : I want to know when my thread die and after this, execute some code.

I'm using WHILE but my program is showing a bad execution... (Sorry my poor english). 

The command while is holding the program....

Thanks a lot!

##########CODE#################

    public class Thread_para_Menu extends Thread{        
            public void run() {
    
                System.out.println("executando thread");
                for (int i = 0; i < 100; i++) {
                    try {
                        Thread.sleep(200);
                    } catch (InterruptedException ex) {
                        Logger.getLogger(Teste_Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    }
                    if (i % 2 == 0) {
                        jlblAguarde.setForeground(Color.yellow);
                    } else {
                        jlblAguarde.setForeground(Color.orange);
                    }
                }
                System.out.println("FIM DO RUN");
            }
        }
    
    public void Pisca_Menu (){
            int xx =0;
            Thread_para_Menu TEMPO_MENU = new Thread_para_Menu();
            TEMPO_MENU.start();
            while (TEMPO_MENU.isAlive()){
                System.out.println("THRE`enter code here`AD VIVE");
            }
           System.out.println("THREAD MORREU");
        }

