From be40d64141c34ad82e8b026a3874c7d3f16347f3 Mon Sep 17 00:00:00 2001 From: jprocter Date: Wed, 10 Feb 2010 14:44:06 +0000 Subject: [PATCH] progress bar hashtable entry was not being removed (bug #0059977) --- src/jalview/gui/AlignFrame.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 3859157..d97b8c3 100755 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -685,20 +685,21 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, } 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); } @@ -715,7 +716,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, layout.setRows(layout.getRows() + 1); statusPanel.add(progressPanel); - progressBars.put(new Long(id), progressPanel); + progressBars.put(lId, progressPanel); } // update GUI setMenusForViewport(); -- 1.7.10.2