title: JFrame title repaint
body: <p>In my JFrame it loops to do some task, I want to see the status in the JFrame title, so I have something like this : </p>
  
  <p>frame.setTitle("Current status [ "+Auto_Count_Id+"/"+Auto_Count_Total+" ]");</p>
  
  <p>But it's not repainting as I need it to. So I tried the following : </p>
  
  <pre><code>&lt;1&gt;
  
      SwingUtilities.invokeLater(new Runnable() 
      {
        public void run()
        {
          frame.setTitle("Current status [ "+Auto_Count_Id+"/"+Auto_Count_Total+" ]");
        }
      });
  </code></pre>
  
  <p>and</p>
  
  <pre><code>    &lt;2&gt;
      // repaint(long time, int x, int y, int width, int height) 
      frame.repaint(10,0,0,500,300) 
  </code></pre>
  
  <p>They don't work either, it only repaints after the task is finished, what can I do ?</p>