/** Close the window after an OK or Cancel. */
 protected void disposeFrame() {
   dialog.dispose();
   editor = null;
 }