class $2041_Window extends Frame{
$2041_Window(){
this.setBounds(50, 50, 300, 300);
this.setVisible(true);
this.addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e){
setVisible(false);
//我在这个位置想访问$2041_Window的对象?
}
});
}
}
调试欢乐多
class $2041_Window extends Frame{
private int intValue = 10;
$2041_Window(){
this.setBounds(50, 50, 300, 300);
this.setVisible(true);
this.addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e){
setVisible(false);
//我在这个位置想访问$2041_Window的对象?
System.out.println($2041_Window.this.intValue);
}
});
}
}