Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

center-align widgets in vertical-panel

8 views
Skip to first unread message

jun...@selma.hfmdk-frankfurt.de

unread,
Nov 23, 2015, 4:45:55 AM11/23/15
to seesaw-clj
Hi,

 I try to get  a slider and a label above and below to center-align. I tried the following without success:

(->
 (frame
  :title "aligntest"
  :content (vertical-panel
            :items
            [(label :id "lbl01" :text "0"
                        :halign :center
                        :h-text-position :center)
             (slider :id "sl01"
                         :value 64 :min 0 :max 127 :orientation :vertical)
             (label :text "transp."
                        :halign :center
                        :h-text-position :center)]))
 pack! show!)

How do I get them to center-.align? I'm new to seesaw/Swing and tried various things but obviously am missing the obvious. Can someone help?

Reply all
Reply to author
Forward
0 new messages