From: gmungoc Date: Fri, 25 Jan 2019 10:54:38 +0000 (+0000) Subject: JAL-3187 set initial state of checkbox from viewport X-Git-Tag: Release_2_11_1_0~65 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=7f8c0af8076ab06ddc54a50164f8a9cc6cbd3124;p=jalview.git JAL-3187 set initial state of checkbox from viewport --- diff --git a/src/jalview/gui/FeatureSettings.java b/src/jalview/gui/FeatureSettings.java index 9f7326f..5b49d6d 100644 --- a/src/jalview/gui/FeatureSettings.java +++ b/src/jalview/gui/FeatureSettings.java @@ -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