seesaw
seesaw copied to clipboard
:text option produces an error in Spinner and Slider
(slider :text "hello")
(spinner :text "hello")
Both produce the following error:
java.lang.IllegalArgumentException: class seesaw.core.proxy$javax.swing.JSpinner$Tag$a79ba523 does not support (seesaw.core/text!) at seesaw.util$illegal_argument.doInvoke (util.clj:19) clojure.lang.RestFn.invoke (RestFn.java:423) seesaw.core/fn (core.clj:584) seesaw.core$fn__2716$G__2711__2723.invoke (core.clj:573) seesaw.core$set_text.invoke (core.clj:623) seesaw.options$apply_option.invoke (options.clj:114) seesaw.options$apply_options_STAR_.invoke (options.clj:129) seesaw.options$apply_options.invoke (options.clj:136) seesaw.core$spinner.doInvoke (core.clj:1945) clojure.lang.RestFn.invoke (RestFn.java:421)
I suppose the exception could be clearer, but :text
isn't supported on spinners or sliders.
(seesaw.dev/show-options (slider))
Seems to indicate that it is.
oops. That's a bug :)