How do you print a letter of the button a user clicked and then disable that button

I use a for loop to generate the buttons of each letter

```
   } for (int i = 65; i <= 90; i++) {
        btnLetters = new JButton(" " + (char) i);
        letterJPanel.add(btnLetters);
        letterJPanel.setLayout(new FlowLayout());
        btnLetters.addActionListener(this);

    }

```

When the button is clicked it should print the letter and then disable the button

```
public void actionPerformed(ActionEvent ae) {

    if (ae.getSource() == btnLetters) {

    }
}

```