import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class Alphabet extends JFrame implements ActionListener {
  
  private JButton button;
  
  public Alphabet() {
    button = new JButton();
    button.setText("A");
    // button.addActionListener(this);
    
    Container c = this.getContentPane();
    c.add(button);  
    
    this.setSize(200,200);
    this.show();
  }
    
  public void actionPerformed(ActionEvent e) {
    
     // get the button that performed an action
     JButton b= (JButton) e.getSource();
     
    /* if (!b.getText().equals("Z")) {
       b.setText((char) (b.getText().charAt(0) + 1) + "");
     } else {
       b.setText("A");
     }*/
  }
  
}
