private static CommonHelpDialog showHelp(JFrame frame,String filename){
  Locale l=Locale.getDefault();
  File helpfile;
  if (!filename.contains(".txt")) {
    helpfile=new File("docs" + File.separator + filename+ '-'+ l.getDisplayLanguage(Locale.ENGLISH)+ ".txt");
    if (!helpfile.exists()) {
      helpfile=new File("docs" + File.separator + filename+ ".txt");
    }
  }
 else {
    String localeFileName=filename.replace(".txt","-" + l.getDisplayLanguage(Locale.ENGLISH) + ".txt");
    helpfile=new File(localeFileName);
    if (!helpfile.exists()) {
      helpfile=new File(filename);
    }
  }
  return new CommonHelpDialog(frame,helpfile);
}

private static CommonHelpDialog showHelp ( JFrame frame , String filename ) { Locale l = Locale . getDefault ( ) ; File helpfile ; if ( ! filename . contains ( ".txt" ) ) { helpfile = new File ( "docs" + File . separator + filename + '-' + l . getDisplayLanguage ( Locale . ENGLISH ) + ".txt" ) ; if ( ! helpfile . exists ( ) ) { helpfile = new File ( "docs" + File . separator + filename + ".txt" ) ; } } else { String localeFileName = filename . replace ( ".txt" , "-" + l . getDisplayLanguage ( Locale . ENGLISH ) + ".txt" ) ; helpfile = new File ( localeFileName ) ; if ( ! helpfile . exists ( ) ) { helpfile = new File ( filename ) ; } } return new CommonHelpDialog ( frame , helpfile ) ; }
display the filename in a commonhelpdialog
