From: gmungoc Date: Fri, 7 Jun 2019 16:08:01 +0000 (+0100) Subject: JAL-3187 change fields to local variables X-Git-Tag: Release_2_11_1_0~51 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=cc6dd57ac507605f95488f178515e3880cbbb672;p=jalview.git JAL-3187 change fields to local variables --- 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()