public class MenuChooser implements ActionListener
{
- public static boolean protein;
+ // public static boolean protein;
private JFrame choosemenu = new JFrame("Animation");
/**
* 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;
+ }
}
}