public class Classe implements ActionListener {
JButton b = new JButton("x");
b.addActionListener(this);
// public .....
}
Eu sei que x.addActionListener(this) adiciona a Interface ActionListener ao JButton b, mas o que exatamente this faz?
Valeu!