Login | Register
geo 19 Jun 2012
A question: has anyone had any success at running JavaFX code from fantom.
I have tried a number of things, initially JavaFFI foiled my attempts, but 1.0.63 has fixed that.
It now seems that normal way of launching a JavaFX scene uses reflection to identify the class that represents the "application", there maybe a way around this, but I don't know it.
geo 21 Jun 2012
I found out the issue that was preventing JavaFX from launching: I believe the main Fantom thread was terminating early because JavaFX runs on it's own Thread and there was nothing to keep the Fantom thread alive. I have an example working using Swing integration and the JFXPanel. Next up is to see if I can get the standard JavaFX launching mechanism working.
I also have the conventional JavaFX launch mechanism working, it needs a small amount of Java code to work, maybe there is way to do it Fantom - but I'm not proficient enough to see the solution.
Conclusion: Fantom works with JavaFX
Login or Register to Reply
Back | All Topics
Collapse All Expand All