alphOrder = new AlphabetOrder(new File("res/" + sourceLanguage + ".order.xml"));
alphOrder = new AlphabetOrder(new Locale(sourceLanguage));
    public void openDicFile(File f) {        LineNumberReader idReader;        String line;        int lineCount=0;        int entryCount=0;                try {            if(dicmlAccess != null) {                //close old dicml-file                dicmlAccess.close();            }            //open dicml-file for accessing            dicmlAccess = new RandomAccessFile(f, "r");                        //count the lines            idReader = new LineNumberReader(new InputStreamReader(new FileInputStream(f.getAbsolutePath() + ".id"), "UTF-8"));            while(idReader.readLine() != null)            {              lineCount++;            }                            idReader.close();                                    idReader = new LineNumberReader(new InputStreamReader(new FileInputStream(f.getAbsolutePath() + ".id"), "UTF-8"));                        entryCount = (lineCount-1) / 3;                        // get the source language            sourceLanguage = idReader.readLine().trim();                        // reset the title            this.setTitle(i18n.getString("progName") + " " + i18n.getString("progVers")                          + " | " +f.getName());                        // init the alphabetical Order            alphOrder = new AlphabetOrder(new File("res/" + sourceLanguage + ".order.xml"));                       //read in the list of entries                        //init arrays            lemmaName = new String[entryCount];            lemmaBegin = new long[entryCount];            lemmaEnd = new long[entryCount];                                    for(int x = 0; x < entryCount; x++) {                                //add entry to array                                line = idReader.readLine();                lemmaName[x] = line;                line = idReader.readLine();                lemmaBegin[x] = Long.parseLong(line);                line = idReader.readLine();                lemmaEnd[x] = Long.parseLong(line);                            }            // select first entry            listView.setListData(lemmaName);                        idReader.close();                        listView.setSelectedIndex(0);        } catch(Exception e) {            if(e.getMessage().equals("-1")) {                //some kind of selection error, just ignore it            } else {                errorDlg.showError(i18n.getString("errorLoadWordbook"), e);            }        }    }