Updating GUI from separate thread in Java

This is my code:

 public void mouseClicked(MouseEvent arg0)
    {
        (new Thread(){
            public void run()
            {
                myFunction(); //executes for a long time
            }
        }).start();

    (new Thread(){
        public void run()
        {
            pollingView(); //executes for a long time
        }
    }).start();
}

The first thread waits for data in the background whereas the thread running the pollingView() prints on the GUI.

This is my function pollingView():

 public void pollingView()
{
    SwingUtilities.invokeLater(new Runnable(){
        public void run()
        {
            for (int i = 10; i>0; i++)
            {
                Thread.sleep(1000); //try is also inserted for thread here
                poll.setText("Polling for data in " + i);
            }
        }
    });

}

Now even though I have used SwingUtilities.invokeLater in the second thread, the GUI is not being updated.

How do I solve this?