class Progress { private int progress; public Progress() { progress = 0; } public int getProgress() { return progress; } public void incProgress() { progress++; }}// --------------------------------------------------------// update progress, in the class that does the calculationsprogress.incProgress();SwingUtilities.invokeLater(new Runnable(){ public void run() { progressMonitor.setProgress(progress.getProgress()); }});
the thing is that now the whole task takes 17000 ms to complete instead of 8000 ms. is this the price i have to pay or i'm doing something wrong?
______________________________
catch (SpellingException e) {}
Edited by - mill-o on November 12, 2001 2:19:21 PM
Edited by - mill-o on November 12, 2001 2:19:37 PM