public TuiReaderMainWindow(TuiReaderApplication reader) {
// Construct a demo window. X and Y don't matter because it will be
// centred on screen.
- super(reader, "Library", 0, 0, 60, 18, CENTERED | RESIZABLE
- | UNCLOSABLE);
+ super(reader, "Library", 0, 0, 60, 18, CENTERED | RESIZABLE);
this.reader = reader;
// root.addChild("child 2").addChild("sub child");
}
+ @Override
+ public void onClose() {
+ setVisible(false);
+ super.onClose();
+ }
+
/**
* Change the source filter and display all stories matching this source.
*