Caixa de listagem (JList) não atualiza dinamicamente de ListModel personalizado

Eu estou trabalhando em um aplicativo de GUI no Clojure usando Gangorra e estou tendo problemas para obter uma caixa de listagem (JList em Java) para atualizar quando meu ListModel personalizado é atualizado.

Aqui está um pouco do meu código:

(deftype ActionHistoryListModel
  [^{:unsynchronized-mutable true} listeners
   ^{:unsynchronized-mutable true} listening-to]

  ListModel
  (addListDataListener [this listener]
    (set! listeners (conj listeners listener)))
  (removeListDataListener [this listener]
    (set! listeners (remove #(= % listener) listeners)))
  (getSize [this] 
    (get-in (deref listening-to) [:count]))
  (getElementAt [this index]
    (get-in (deref listening-to) [:actions index]))

  ActionHistoryListModelProtocol
  (listen-to [this r]
    (do
      (set! listening-to r)
      (add-watch r this (fn [_ _ _ new-state] (.notify this new-state)))))
  (notify [this new-state]
    (let [action ((meta new-state) :last-action)
          const  (cond
            (= action :create) INTERVAL_ADDED
            (= action :update) CONTENTS_CHANGED)
          index  (last ((meta new-state) :action-target))
          event  (ListDataEvent. this const index index)
          notification (cond
            (= action :create) #(.intervalAdded % event)
            (= action :update) #(.contentsChanged % event))
          ]
      (. (.. System out) print (str "Index: " index "\n" "Event: " event "\n"))
      (map #(invoke-later (notification %)) listeners)))
  )

(defn make-action-history-list-model []
  (ActionHistoryListModel. #{} nil))

(def ahlm (make-action-history-list-model))
(.listen-to ahlm action-history)

(def undo-list (listbox :model ahlm))

; then put list in frame...

Ondeaction-history é umref.

Vai ao ponto em que a lista deve ser atualizada porque oSystem.out.print está acontecendo, mas o listbox não quer atualizar

Alguma idéia do que pode estar errado? É algo com o mix de usar o EDT e assistir ao retorno de chamada?

Deixe-me saber se mais código é necessário.

questionAnswers(1)

yourAnswerToTheQuestion