Hi everyone,
I was wondering if anybody could help me with this problem. I have a main class which extends JFrame and it contains a JTextArea. The main class makes a call to another class which performs some processing in a looping manner:
while (s.hasMore())
{
urlsCompleted.setText(s.getCompleted());
repaint();
urlsToDo.setText(s.todo.toString());
urlErrors.setText(s.getErrors());
s.doNextSite();
}
However, the JTextArea does not dynamically update as the process is running. The only update on the produced GUI occurs once everything has finished running.
Does anybody know how to correct the problem so that the JTextAreas in the JFrame update dynamically. repaint() does not do the job.
thanks
Brinker
I was wondering if anybody could help me with this problem. I have a main class which extends JFrame and it contains a JTextArea. The main class makes a call to another class which performs some processing in a looping manner:
while (s.hasMore())
{
urlsCompleted.setText(s.getCompleted());
repaint();
urlsToDo.setText(s.todo.toString());
urlErrors.setText(s.getErrors());
s.doNextSite();
}
However, the JTextArea does not dynamically update as the process is running. The only update on the produced GUI occurs once everything has finished running.
Does anybody know how to correct the problem so that the JTextAreas in the JFrame update dynamically. repaint() does not do the job.
thanks
Brinker