log.error(ble.toString());
log.error("Exception", ble);
  public void fillFromLogFile(String logFileName) {    AttributeSet a = new javax.swing.text.SimpleAttributeSet();    try {      // clear document      remove(0, getLength());    } catch (Exception e) {      if(log.isErrorEnabled()) {        log.error("Exception clearing output window", e);      }    }    // read log file contents into document    BufferedReader reader = null;    try {      reader = new BufferedReader(new FileReader(logFileName));    } catch (FileNotFoundException fnfe) {      if(log.isErrorEnabled()) {        log.error(fnfe.toString());      }    }    try {      while (true) {        String s = reader.readLine();        if (s != null) {          insertString(getLength(), s, a);        } else          break;      }    } catch (IOException ioe) {      if(log.isErrorEnabled()) {        log.error(ioe.toString());      }    } catch (BadLocationException ble) {      if(log.isErrorEnabled()) {        log.error(ble.toString());      }    }    bufferSize = -1; // don't trim document any more  }