private String getFileToOpen() {
    JFileChooser projectFC = new JFileChooser();
    int validPath = projectFC.showOpenDialog(myCP);
    if (validPath == JFileChooser.ERROR_OPTION || validPath == JFileChooser.CANCEL_OPTION) {
      return null;
    } else {
      return projectFC.getSelectedFile().toString();
    }
  }