import jalview.schemes.TCoffeeColourScheme;
import jalview.util.ImageMaker.TYPE;
import jalview.util.MessageManager;
+import jalview.util.Platform;
import jalview.viewmodel.AlignmentViewport;
import jalview.viewmodel.ViewportRanges;
import jalview.ws.DBRefFetcher;
*/
void init()
{
+// setBackground(Color.white); // BH 2019
+
if (!Jalview.isHeadlessMode())
{
progressBar = new ProgressBar(this.statusPanel, this.statusBar);
@Override
public void setStatus(String text)
{
- statusBar.setText(text);
+ // BH note: If text width and height are 0, then the layout manager
+ // will dispense of it and change the frame height.
+ // In JavaScript, we use \u00A0 -- unicode "non-breaking space"
+ // which is the unicode encoding of
+
+ statusBar.setText(text == null || text.isEmpty() ? " " : text);
}
/*
{ contents.toString() });
contents = null;
- if (Jalview.isJS())
+ if (Platform.isJS())
{
JLabel textLabel = new JLabel();
textLabel.setText(content);