Create a simple java applet that implements ActionListener using button

import java.awt.*;
import java.awt.event.*;
import java.applet.*;
public class Bl extends Applet implements ActionListener{
    Button b1;
    int i=0;
    Label l;
    public void init(){
        b1=new Button("Click Here");
        l=new Label("            No click              ");
        add(b1);
        add(l);
        b1.addActionListener(this);
    }
    public void actionPerformed(ActionEvent ae)
    {
        String st="Button click for ";
        i++;
        st=st+i+" times";
        l.setText(st);
    }
}