JAL-3187 set initial state of checkbox from viewport
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 25 Jan 2019 10:54:38 +0000 (10:54 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 25 Jan 2019 10:54:38 +0000 (10:54 +0000)
src/jalview/gui/FeatureSettings.java

index 9f7326f..5b49d6d 100644 (file)
@@ -1266,6 +1266,7 @@ public class FeatureSettings extends JPanel
     boolean nucleotide = af.getViewport().getAlignment().isNucleotide();
     showComplement = new JCheckBox(
             "Show " + (nucleotide ? "protein" : "CDS") + " features");
+    showComplement.setSelected(af.getViewport().isShowComplementFeatures());
     showComplement.addActionListener(new ActionListener()
     {
       @Override