/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hirka;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import javax.swing.JButton;

/**
 *
 * @author dimitri
 */
class Bouton extends JButton {
    private Panel panel;

    public Bouton(String string, Panel panel) {
        super(string);
        this.addActionListener(new EcouteurBouton());
        this.panel = panel;
    }

    private class EcouteurBouton implements ActionListener {

        @Override
        public void actionPerformed(ActionEvent ae) {            
            Bouton.this.panel.setChar();
        }
        
    }
    
}
