code: public static SeerClickableLabelAction createOpenParentFolderAction(final String path) {
          return () -> {
              File file = new File(path);
              try {
                  if (file.exists() && System.getProperty("os.name").startsWith("Windows"))
                      Runtime.getRuntime().exec("Explorer /select," + file.getParentFile().getAbsolutePath() + "\\" + file.getName());
                  else {
                      Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;
                      if (desktop != null && desktop.isSupported(Action.OPEN))
                          Desktop.getDesktop().open(file.getParentFile());
                  }
              }
              catch (IOException | RuntimeException e) {
                  // ignored
              }
          };
      }
docs: Utility method to create an action that opened a given file.
  @param path path to the file
  @return corresponding action