for (int x = 0; x < keyMnemonic.length; x++) { lm.addElement(LangTool.getString("key."+keyMnemonic[x]));
for (int x = 0; x < mnemonicData.length; x++) { lm.addElement(LangTool.getString("key."+mnemonicData[x]));
   private void loadList(String which) {      lm.clear();      lm.removeAllElements();      if (which.equals(LangTool.getString("key.labelKeys"))) {         for (int x = 0; x < keyMnemonic.length; x++) {            lm.addElement(LangTool.getString("key."+keyMnemonic[x]));         }         macros = false;         special = false;      }      else {         if (which.equals(LangTool.getString("key.labelMacros"))) {            if (macrosList != null)               for (int x = 0; x < macrosList.length; x++) {                  lm.addElement(macrosList[x]);               }            macros = true;            special = false;         }         else {            // we will use a collator here so that we can take advantage of the locales            Collator collator = Collator.getInstance();            CollationKey key = null;            StringBuffer sb = new StringBuffer();            Set set = new TreeSet();            for (int x =0;x < 256; x++) {               char c = codePage.ebcdic2uni(x);               char ac = codePage.getASCIIChar(x);               if (!Character.isISOControl(c)) {                  sb.setLength(0);                  if (Integer.toHexString(ac).length() == 1){                     sb.append("0x0" + Integer.toHexString(ac).toUpperCase());                  }                  else {                     sb.append("0x" + Integer.toHexString(ac).toUpperCase());                  }                  sb.append(" - " + c + " - " + getUnicodeString(c));                  key = collator.getCollationKey(sb.toString());                  set.add(key);               }            }            Iterator iterator = set.iterator();            while (iterator.hasNext()) {               CollationKey keyc = (CollationKey)iterator.next();               lm.addElement(keyc.getSourceString());            }            macros = false;            special = true;         }      }      if (!lm.isEmpty())         functions.setSelectedIndex(0);   }