From 7f8c0af8076ab06ddc54a50164f8a9cc6cbd3124 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Fri, 25 Jan 2019 10:54:38 +0000 Subject: [PATCH] JAL-3187 set initial state of checkbox from viewport --- src/jalview/gui/FeatureSettings.java | 1 + 1 file changed, 1 insertion(+) 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 -- 1.7.10.2