That works, thanks a lot! Em terça-feira, 5 de fevereiro de 2019 11:55:32 UTC-3, jvshahid escreveu: > > > Thiago Araújo <thiago...@gmail.com <javascript:>> writes: > > > Hi, > > > > I'm a newcomer to java interop. I'm trying to run the following code > > without success: > > > > (javafx.scene.layout.HBox. (javafx.scene.control.Label. "Foo")) > > > > I get: > > > > IllegalArgumentException No matching ctor found for class > > javafx.scene.layout.HBox clojure.lang.Reflector.invokeConstructor > > (Reflector.java:183) > > The HBox constructor you are trying to use is a variadic method, i.e. it > accepts an array of Node objects. You just need to use something like: > > (into-array javafx.scene.control.Label (javafx.scene.control.Label > "Foo")) > > Cheers, > > JS >
-- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.