From: Jim Procter Date: Mon, 8 Aug 2022 15:17:49 +0000 (+0100) Subject: JAL-4034 show the loading spinner when switching between tabs X-Git-Tag: Release_2_11_2_6~34 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=9531c62e5d56d3489e5688c4922a48267564427a;p=jalview.git JAL-4034 show the loading spinner when switching between tabs --- diff --git a/src/jalview/gui/StructureChooser.java b/src/jalview/gui/StructureChooser.java index 6eb8d10..07eec2b 100644 --- a/src/jalview/gui/StructureChooser.java +++ b/src/jalview/gui/StructureChooser.java @@ -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();