strokeDesc.setText(mapper.getKeyStrokeDesc((String)o)); strokeDescAlt.setText(mapper.getKeyStrokeDesc((String)o + ".alt2"));
setKeyInformation((String)o);
   private void setKeyDescription(int index) {      // This try and catch is to fix a problem in JDK1.4-betas      try {         if (!macros && !special) {            KeyDescription kd = (KeyDescription)lm.getElementAt(index);            strokeDesc.setText(mapper.getKeyStrokeDesc(mnemonicData[kd.getIndex()]));            strokeDescAlt.setText(mapper.getKeyStrokeDesc(mnemonicData[kd.getIndex()] + ".alt2"));         }         else {            if (macros) {               Object o = lm.getElementAt(index);               if (o instanceof String) {                  System.out.println((String)o);                  strokeDesc.setText(mapper.getKeyStrokeDesc((String)o));                  strokeDescAlt.setText(mapper.getKeyStrokeDesc((String)o + ".alt2"));               }               else                  if (o instanceof Macro) {                     Macro m = (Macro)o;                     strokeDesc.setText(mapper.getKeyStrokeDesc(m.getFullName()));                     strokeDescAlt.setText(mapper.getKeyStrokeDesc(m.getFullName() + ".alt2"));                  }            }            if (special) {               System.out.println((String)lm.getElementAt(index));               String k = parseSpecialCharacter((String)lm.getElementAt(index));               strokeDesc.setText(mapper.getKeyStrokeDesc(k));            }         }      }      catch (ArrayIndexOutOfBoundsException ar) {         System.out.println("ar at index " + index + " - " + ar.getMessage());      }   }