JOptionPane.showMessageDialog(this, "No GUI for name mapping: " + mapping, "Loading GUI", JOptionPane.ERROR_MESSAGE);
  protected void openFile()  {    status_panel_.setStatusText("Opening file...");    if (file_chooser_ == null)    {      file_chooser_ = new JFileChooser();            FileFilter all_files = FileFilters.createAllSupportedFilesFilter(application_);      file_chooser_.addChoosableFileFilter(all_files);            FileFilter[] filters = FileFilters.createMIMEFileFilters(application_);      for (int count = 0; count < filters.length; ++count)      {        file_chooser_.addChoosableFileFilter(filters[count]);      }      file_chooser_.setFileFilter(all_files);            file_option_panel_ = new AccessOptionPanel(application_);      file_chooser_.setAccessory(file_option_panel_);      file_chooser_.addPropertyChangeListener(file_option_panel_);          }        if (file_chooser_.showOpenDialog(this) == JFileChooser.APPROVE_OPTION)    {      if (gui_module_ != null)      {          JComponent main_panel = gui_module_.getMainPanel();          remove(main_panel);                            io_panel_.setIOOptions(null);          io_panel_.removeIOActionListener(gui_module_.getIOActionListener());      }            status_panel_.setStatusText("Creating GUI...");      String mapping = file_option_panel_.getSelectedNameMapping();      gui_module_ = GUIModuleFactory.createModule(mapping);            if (gui_module_ != null)      {        gui_module_.setApplication(application_);        if (gui_module_.setFile(file_chooser_.getSelectedFile()))        {          file_panel_.setText("File: " + file_chooser_.getSelectedFile());                  JComponent main_panel = gui_module_.getMainPanel();          getContentPane().add(main_panel, BorderLayout.CENTER);                    JComponent option_panel = gui_module_.getIOOptionPanel();          io_panel_.setIOOptions(option_panel);          io_panel_.addIOActionListener(gui_module_.getIOActionListener());          io_panel_.setIOMode(gui_module_.getIOMode());          pack();        }        else        {          file_panel_.setText("No file open");          gui_module_ = null;        }      }      else      {        repaint();      }    }    status_panel_.clearStatusText();  }