/** Closes this window. */ public void close() { // setVisible(false); dispose(); WindowManager.removeWindow(this); }