JAL-3253 preliminary static fixes for JavaScript part 2
[jalview.git] / src / jalview / gui / MenuChooser.java
index 0e42a7a..be7f0f6 100644 (file)
@@ -32,7 +32,7 @@ import javax.swing.JPanel;
 
 public class MenuChooser implements ActionListener
 {
-  public static boolean protein;
+  // public static boolean protein;
 
   private JFrame choosemenu = new JFrame("Animation");
 
@@ -84,16 +84,21 @@ public class MenuChooser implements ActionListener
   /**
    * C'est la méthode qui sera appelée lors d'un clic sur notre bouton
    */
+  @Override
   public void actionPerformed(ActionEvent arg0)
   {
 
     if (arg0.getSource() == bouton)
-      protein = false;
-    label.setText("RNA menu");
+    {
+      //      protein = false;
+      label.setText("RNA menu");
+    }
 
     if (arg0.getSource() == bouton2)
+     {
       label.setText("Protein menu");
-    protein = true;
+//    protein = true;
+    }
   }
 
 }