/*
* make the progressBar determinate and update its progress
+ * or indeterminate if progress<-1 or lengthOfTask < 0
*/
public void updateProgressBar(int lengthOfTask, int progress)
{
pBar.setValue(0);
pBar.setIndeterminate(false);
}
+
+ if (progress<-1 || lengthOfTask<=0)
+ {
+ pBar.setIndeterminate(true);
+ pBar.repaint();
+ return;
+ }
updateProgressBar(progress);
}
}
}
alignmentScores[count - 1][count - 1] = Float.NaN;
+ // done - mark progress as indeterminate again
+ firePropertyChange(TOTAL, -1, -2);
+
this.scores = scores;
this.alignmentScores = alignmentScores;