wl = new WindowAdapter() { public void windowClosing(WindowEvent evt) { Debug .msg("parent window is closing. writing button status for CallerListPanel"); writeButtonStatus(); } }; parent.addWindowListener(wl);
	public CallerListPanel(CallerList callerList, JFrame parent) {		super();		parentFrame = parent;		this.callerList = callerList;		createFilters(callerList);		setLayout(new BorderLayout());		add(createToolBar(), BorderLayout.NORTH);		add(createCallerListTable(), BorderLayout.CENTER);		wl = new WindowAdapter() {			public void windowClosing(WindowEvent evt) {				Debug						.msg("parent window is closing. writing button status for CallerListPanel");				writeButtonStatus();			}		};		parent.addWindowListener(wl);	}