updateEditMenuBar();
}
- // methods for implementing IProgressIndicator
- // need to refactor to a reusable stub class
- // Map<Long, JPanel> progressBars;
- //
- // Map<Long, IProgressIndicatorHandler> progressBarHandlers;
- private ProgressBar progressBar;
+ private IProgressIndicator progressBar;
/*
* (non-Javadoc)
IProgressIndicator
{
- private ProgressBar progressBar;
+ private IProgressIndicator progressBar;
RotatableCanvas rc;
package jalview.gui;
import java.awt.BorderLayout;
+import java.awt.Component;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/*
* lay out progress bar container hierarchy
*/
- SwingUtilities.getRoot(statusPanel).validate();
+ Component root = SwingUtilities.getRoot(statusPanel);
+ if (root != null)
+ {
+ root.validate();
+ }
}
/**
JInternalFrame frame;
- private ProgressBar progressBar;
+ private IProgressIndicator progressBar;
@Override
public void setVisible(boolean aFlag)