JAL-4034 show the loading spinner when switching between tabs
authorJim Procter <j.procter@dundee.ac.uk>
Mon, 8 Aug 2022 15:17:49 +0000 (16:17 +0100)
committerJim Procter <j.procter@dundee.ac.uk>
Mon, 8 Aug 2022 15:17:49 +0000 (16:17 +0100)
src/jalview/gui/StructureChooser.java

index 6eb8d10..07eec2b 100644 (file)
@@ -1391,6 +1391,7 @@ public class StructureChooser extends GStructureChooser
   {
     if (selectedSequences != null)
     {
+      lbl_loading.setVisible(true);
       Thread refreshThread = new Thread(new Runnable()
       {
         @Override
@@ -1402,6 +1403,7 @@ public class StructureChooser extends GStructureChooser
           filterResultSet(
                   ((FilterOption) cmb_filterOption.getSelectedItem())
                           .getValue());
+          lbl_loading.setVisible(false);
         }
       });
       refreshThread.start();