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)
One of the constructors for HBox says we can pass instances of Node (Node
is an ancestor of Label), so I wonder why that's not working? I already got
through the following gotcha:
(javafx.scene.layout.HBox. 5) ;; does not work
(javafx.scene.layout.HBox. 5.0) ;; works
So it must be some detail I'm missing out.
I'm using Java 9.0.4 and Clojure 1.9.0.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.