From 9531c62e5d56d3489e5688c4922a48267564427a Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 8 Aug 2022 16:17:49 +0100 Subject: [PATCH] JAL-4034 show the loading spinner when switching between tabs --- src/jalview/gui/StructureChooser.java | 2 ++ 1 file changed, 2 insertions(+) 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(); -- 1.7.10.2