I have a problem with seesaw table. When I try to make up and show a simple table, it shows without column names.
What I did:
At first, I must say that I am using [seesaw "1.4.2"]
.
Then:
;; Clojure 1.4.0
(require '[seesaw.core :as ss])
(ss/native!)
(def main-window
(-> (ss/frame
:title "Main window")
ss/pack!
(ss/config! :minimum-size [320 :by 240])
ss/show!))
(def display
#(ss/config! main-window
:content %))
(display
(ss/table
:id :dumb-table
:model [:columns
[:one :another]
:rows
[["1" "2"]
["3" "4"]]]))
(source: leprosorium.com)
Table appears, but without column names, which, I guess, must be "one" and "another". What went wrong here?
It happens also if I use exactly the same code as in official wiki: https://github.com/daveray/seesaw/wiki/Tables
I forgot to mention, I'm using JDK 1.7u10, maybe it makes sense.
I dont know how to use seesaw table. but in general you need to add JTable to JScrollPane. This is because JScrollPane makes column header available at the top even when you scroll the data. if you dont want to use JScrollPane then u need to add the column header manually to the container so they stay at the top. So try adding JScrollPane.
Let me know if i went wrong...:)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With