public void actionPerformed(ActionEvent e) {
            if (filename == null) return;
            filename = null;
            dir = null;
            imViewer.setImage(null);
            f.setZoomEnabled(false);
          }