public void init () { ... Button bouton= new Button("Click"); add(bouton); bouton.addActionListener(new BoutonListener()); ... }