code: private void showWindow(Window newWindow)
      {
          if (window != null)
          {
              window.remove(getGUIComponent());
              window.setVisible(false);
              window.dispose();
              window = null;
          }
          newWindow.add(getGUIComponent(), BorderLayout.CENTER);
          newWindow.pack();
          newWindow.setVisible(true);
          this.window = newWindow;
      }
docs: Helper method for showing the evolution monitor in a frame or dialog.
  @param newWindow The frame or dialog used to show the evolution monitor.