task.addPropertyChangeListener(new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt)
{
if (evt.getPropertyName().equalsIgnoreCase("progress"))
<BUG>{
pbar.setValue(task.getProgress());

}</BUG>
if (evt.getNewValue().toString().equalsIgnoreCase("done"))

task.addPropertyChangeListener(new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt)
