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 :
frame.setTitle("Current status [ "+Auto_Count_Id+"/"+Auto_Count_Total+" ]");
But it's not repainting as I need it to. So I tried the following :
<1>
SwingUtilities.invokeLater(new Runnable()
{
public void run()
{
frame.setTitle("Current status [ "+Auto_Count_Id+"/"+Auto_Count_Total+" ]");
}
});
and
<2>
// repaint(long time, int x, int y, int width, int height)
frame.repaint(10,0,0,500,300)
They don't work either, it only repaints after the task is finished, what can I do ?