比如我在面板里面添加了一个按钮,想通过鼠标单击按钮以后改变按钮上面的标签,应该怎样实现?我知道改变按钮标签的方法是 ButtonObject.setLabel(),但是在
public void actionPerformed(ActionEvent e)
{}
中怎样才能得到“按钮”对象呢?