 (ns nightweb-desktop.window
   (:require [splendid.jfx :as jfx])
   (:import (javafx.scene.layout VBox Priority)
-           (javafx.scene.control TabPane Tab)
-           javafx.collections.ListChangeListener)
+           (javafx.scene.control TabPane Tab))
   (:use [nightweb-desktop.browser :only [create-tab]]))
 
 (defn add-tab

      (.setWidth jfx/primary-stage 1024)
      (.setHeight jfx/primary-stage 768)
      (jfx/add window [tab-bar])
      (jfx/show window))))

      (.add (.getTabs tab-bar) plus-tab)
      (jfx/defhandler :onSelectionChanged plus-tab (add-tab tab-bar))
      (.addListener (.getTabs tab-bar)
                    (reify javafx.collections.ListChangeListener
                      (onChanged [this change]
                        (let [tabs (butlast (.getTabs tab-bar))]
                          (doseq [tab tabs]
