import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;


public class Compteur {
	public JButton bouton;
	
	public Compteur(){
		bouton = new JButton("0");
		bouton.addActionListener(
			new ActionListener(){
				public void actionPerformed ( ActionEvent e ) {
				bouton.setText(Integer.toString(Integer.parseInt(bouton.getText())+1));
				}
			}
		);
	}
	
	
	

}
