JAL-2047 delay to allow table model initilisation to complete
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Wed, 13 Apr 2016 09:41:13 +0000 (10:41 +0100)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Wed, 13 Apr 2016 09:41:13 +0000 (10:41 +0100)
src/jalview/ws/uimodel/PDBRestResponse.java

index 3dc3563..3471fab 100644 (file)
@@ -269,6 +269,14 @@ public class PDBRestResponse
   public static void configureTableColumn(JTable tbl_summary,
           Collection<PDBDocField> wantedFields)
   {
+    try
+    {
+      // wait for table model initialisation to complete
+      Thread.sleep(1200);
+    } catch (InterruptedException e1)
+    {
+      e1.printStackTrace();
+    }
     for (PDBDocField wantedField : wantedFields)
     {
       try