From cc6dd57ac507605f95488f178515e3880cbbb672 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Fri, 7 Jun 2019 17:08:01 +0100 Subject: [PATCH] JAL-3187 change fields to local variables --- src/jalview/gui/FeatureSettings.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/jalview/gui/FeatureSettings.java b/src/jalview/gui/FeatureSettings.java index a5585ce..e9b6f8c 100644 --- a/src/jalview/gui/FeatureSettings.java +++ b/src/jalview/gui/FeatureSettings.java @@ -161,10 +161,6 @@ public class FeatureSettings extends JPanel JSlider transparency = new JSlider(); - JCheckBox showComplement; - - JCheckBox showComplementOnTop; - /* * when true, constructor is still executing - so ignore UI events */ @@ -1275,7 +1271,7 @@ public class FeatureSettings extends JPanel MessageManager.getString("label.transparency_tip")); boolean nucleotide = af.getViewport().getAlignment().isNucleotide(); - showComplement = new JCheckBox( + JCheckBox showComplement = new JCheckBox( "Show " + (nucleotide ? "protein" : "CDS") + " features"); showComplement.setSelected(af.getViewport().isShowComplementFeatures()); showComplement.addActionListener(new ActionListener() @@ -1289,7 +1285,7 @@ public class FeatureSettings extends JPanel } }); - showComplementOnTop = new JCheckBox("on top"); + JCheckBox showComplementOnTop = new JCheckBox("on top"); showComplementOnTop .setSelected(af.getViewport().isShowComplementFeaturesOnTop()); showComplementOnTop.addActionListener(new ActionListener() -- 1.7.10.2