question: 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 ) ; }
target:  display the filename in a CommonHelpDialog