}
JPanel progressPanel;
+ Long lId=new Long(id);
GridLayout layout = (GridLayout) statusPanel.getLayout();
- if (progressBars.get(new Long(id)) != null)
+ if (progressBars.get(lId) != null)
{
progressPanel = (JPanel) progressBars.get(new Long(id));
statusPanel.remove(progressPanel);
- progressBars.remove(progressPanel);
+ progressBars.remove(lId);
progressPanel = null;
if (message != null)
{
statusBar.setText(message);
}
- if (progressBarHandlers.contains(new Long(id)))
+ if (progressBarHandlers.contains(lId))
{
- progressBarHandlers.remove(new Long(id));
+ progressBarHandlers.remove(lId);
}
layout.setRows(layout.getRows() - 1);
}
layout.setRows(layout.getRows() + 1);
statusPanel.add(progressPanel);
- progressBars.put(new Long(id), progressPanel);
+ progressBars.put(lId, progressPanel);
}
// update GUI
setMenusForViewport();