import java.util.List;
import javax.swing.JInternalFrame;
+import javax.swing.SwingUtilities;
import jalview.bin.Cache;
import jalview.datamodel.Alignment;
@Override
public void taskCompleted(TaskI<AlignmentResult> source, AlignmentResult result)
{
+ SwingUtilities.invokeLater(() -> infoPanel.removeProgressBar(jobs[0].getInternalId()));
if (result == null)
{
- infoPanel.setFinishedNoResults();
+ SwingUtilities.invokeLater(infoPanel::setFinishedNoResults);
return;
}
infoPanel.showResultsNewFrame.addActionListener(evt -> {
displayResultsNewFrame(alnCpy, result.getAlignmentOrders(),
result.getHiddenColumns());
});
- infoPanel.setResultsReady();
+ SwingUtilities.invokeLater(infoPanel::setResultsReady);
}
private void displayResultsNewFrame(Alignment aln,