public void actionPerformed(ActionEvent e) {
          JFileChooser c = new JFileChooser();
          // Demonstrate "Open" dialog:
          if (lastPosition == null)
        	  	c.setCurrentDirectory(new File("."));
          else
        	  	c.setCurrentDirectory(new File(lastPosition));
          c.setAcceptAllFileFilterUsed(false);
          c.addChoosableFileFilter(new Hfilter());
          int rVal = c.showOpenDialog(TileMain.f);
          if (rVal == JFileChooser.APPROVE_OPTION) {
            filename = c.getSelectedFile().getName();
            dir = c.getCurrentDirectory().toString();
            try {
				SaveLoadImport.loadMap(dir+File.separatorChar+filename, imViewer, imMapper);
			} catch (CantImportException err) {
				JOptionPane.showMessageDialog(f, Utils.lang("errCantOpen"));
			}
            f.setMapWidth(imMapper.getTileWidth());
            f.setMapHeight(imMapper.getTileHeight());
            lastPosition = dir;
          }
          if (rVal == JFileChooser.CANCEL_OPTION) {}
        }