- addButton("&Close Window", (width - 14) / 2, height - 4,
- {
- application.closeWindow(this);
+ addButton("&Close Window", (getWidth() - 14) / 2, getHeight() - 4,
+ new TAction() {
+ public void DO() {
+ DemoCheckboxWindow.this.getApplication().closeWindow(DemoCheckboxWindow.this);
+ }