JAL-3187 change fields to local variables
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 7 Jun 2019 16:08:01 +0000 (17:08 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 7 Jun 2019 16:08:01 +0000 (17:08 +0100)
src/jalview/gui/FeatureSettings.java

index a5585ce..e9b6f8c 100644 (file)
@@ -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()