jsp.getViewport().setBackingStoreEnabled(true);
jsp.getViewport().setScrollMode(JViewport.BACKINGSTORE_SCROLL_MODE);
  private void init() {    addWindowListener(new WindowAdapter() {      public void windowClosing(WindowEvent e) {	NamedFrame.getNamedFrame().removeFrame(myFrame);	e.getWindow().dispose();      }    });    setSize(600, 275);    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();    setLocation((screenSize.width - 600)/2, 		(screenSize.height - 275)/2);    if (metrics != null)      getContentPane().add("Center", metrics);        JScrollPane jsp = new JScrollPane();    jsp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);    jsp.getViewport().setBackingStoreEnabled(true);    getContentPane().add(jsp, "East");    jsp.setViewportView(metrics);    JMenuBar menuBar = new JMenuBar();    getRootPane().setJMenuBar(menuBar);    JMenu fileMenu = makeMenu(FILE_MENU, fileMenuItems, menuBar);    for (int i = 0; i < fileMenu.getMenuComponentCount(); i++) {      Component menuComponent = fileMenu.getMenuComponent(i);      if (!(menuComponent instanceof JMenuItem))	continue;      JMenuItem menuItem = (JMenuItem)menuComponent;      String s = menuItem.getText();      if (s.equals(SAVE_MENU_ITEM))	saveMenuItem = menuItem;      else if (s.equals(PRINT_MENU_ITEM)) {	menuItem.setEnabled(false);      }    }    makeMenu(VIEW_MENU, viewMenuItems, menuBar);    makeMenu(HELP_MENU, helpMenuItems, menuBar);    setVisible(true);  }