关于this的小问题,新手求解
class MyButton extends Button implements ActionListener{
String name;
TextField text;
Container con;
MyButton(String s,Container con)
{
super(s);
this.con=con;
text=new TextField(8);
text.addActionListener(this);
this.addActionListener(this);
con.add(text);
con.add(this);
}
public void actionPerformed(ActionEvent e)
{
name=text.getText();
this.setLabel(name);
con.validate();
}
}
红色字体的这两句代码怎么理解?