Hi,

you don't need the .class suffix; just use the class name. null is named nil. 
Also [] is a vector, not an array. You need to-array resp. into-array. In the 
addItem calls you got the “array” sizes wrong. And finally new Object[] {a, b, 
c} creates a new array. Not a new Object. (Which is what (Object.) does.)

(doto (Table.)
  (.addContainerProperty "First Name" String nil)
  (.addContainerProperty "Last Name" String nil)
  (.addContainerProperty "Year" Integer nil)
  (.addItem (to-array ["Nicolaus" "Copernicus" 1473]) 1)
  (.addItem (to-array ["Tycho" "Brahe" 1546]) 2))

Hope this helps.

Sincerely
Meikel

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to