else
{
progressBars.put(Long.valueOf(id), addProgressPanel(message));
- progressBarMessages.put(id, message);
+ if (message!=null) {
+ progressBarMessages.put(id, message);
+ } else {
+ progressBarMessages.remove(id);
+ }
}
}
JProgressBar progressBar = new JProgressBar();
progressBar.setIndeterminate(true);
- progressPanel.add(new JLabel(message), BorderLayout.WEST);
+ progressPanel.add(new JLabel(message==null ? "" : message), BorderLayout.WEST);
progressPanel.add(progressBar, BorderLayout.CENTER);
addRow(progressPanel);
progressBars.put(id, progressPanel);
- progressBarMessages.put(id, message);
+ progressBarMessages.put(id, message == null ? "" : message);
}
refreshLayout();