if(log.isDebugEnabled()) { log.debug("NamedFrame: adding: " + title); }
  public String addFrame(String title, JFrame frame) {    // number commonly used titles    for (int i = 0; i < titles.length; i++) {      if (title.equals(titles[i])) {	title = titles[i] + " " + index[i]++;	break;      }    }    String baseTitle = title;    int otherIndex = 1;    while (titleToFrame.get(title) != null)      title = baseTitle + " " + otherIndex++;    if(log.isDebugEnabled()) {      log.debug("NamedFrame: adding: " + title);    }    titleToFrame.put(title, frame);    setChanged();    // notify observers with title and frame    notifyObservers(new Event(frame, title, Event.ADDED, null));    frame.setTitle(title);    return title;  }