From: Jim Procter Date: Thu, 1 May 2014 14:12:07 +0000 (+0100) Subject: JAL-1497 check to see if tree structure is ready for display, and show a 'tree loadin... X-Git-Tag: Jalview_2_9~190^2~14 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d919b93d3c0a57e36c2a90a34a6788bca86bfe81;p=jalview.git JAL-1497 check to see if tree structure is ready for display, and show a 'tree loading' message if it isn't. --- diff --git a/src/jalview/gui/TreeCanvas.java b/src/jalview/gui/TreeCanvas.java index 9e2e582..97cca4b 100755 --- a/src/jalview/gui/TreeCanvas.java +++ b/src/jalview/gui/TreeCanvas.java @@ -667,9 +667,12 @@ public class TreeCanvas extends JPanel implements MouseListener, Runnable, RenderingHints.VALUE_ANTIALIAS_ON); g2.setColor(Color.white); g2.fillRect(0, 0, width, height); - g2.setFont(font); + if (longestName==null || tree ==null) + { + g2.drawString("Calculating tree.",20,20); + } offy = font.getSize() + 10; fm = g2.getFontMetrics(font);