title: Update Thread in applet
body: <p>In my application i have created multiple Threads, In that in each thread value has been changed. so every minute i want update all threads the same value from the list..In this coding, values are not updated. previous values only retained in every thread. What is the solution?</p>
  
  <pre><code>public static class updateClient implements Runnable {
      public static void doUpadte(Map&lt;String, String&gt; list) {
          final Map&lt;String, String&gt; liHashMap = list;
          SwingUtilities.invokeLater(new Runnable() {
  
              @Override
              public void run() {
                  // TODO Auto-generated method stub
                  for (Entry&lt;String, String&gt; entry : liHashMap.entrySet()) {
                      String client_Name=entry.getKey();
                      taNames.append(client_Name + "\n");
                  }       
              }
          });
      }
  
      @Override
      public void run() {
          // TODO Auto-generated method stub
          while(true) {
              try {
                  Thread.sleep(5000);
                  doUpadte(list);
              }
              catch (Exception e) {
                  // TODO: handle exception
                  e.printStackTrace();
              }
          }
      }
  }
  </code></pre>