public void setTitle(final File file, final boolean changed) {
    this.file = file;
    chg = changed;
    setTitle(TITLE + (changed ? "*" : "")
        + (file != null ? file.toString() : "-")
        + (str != null ? " - " + str : "")
        + (brush != null ? " Brush: " + brush : ""));
  }