« Animating with Dynamic Timeline Values in JavaFX ...and a Scientific Fish Story from 1901 | Main | Leveraging JFXtras and Freebase with JavaFX to Create BandmatesFX »

June 24, 2009

Comments

Bruce

The example doesn't work at all. I'm using eclipse and everythere are erros!

Nihar

Hi Jim,

I have read your artical which is pretty much informative.

with a reference of your example i have create one sample application which asynchronously call the webservices.

instread of ticker class ( in your example) i have implement RunnableFuture interface to a class [Control.java] which is responsible for making SOAP based webservices calls.
and i have override the run method in which i am making webservice request and getting back the response in a TickerHandler.

so my main.fx calls taskController.start() to start the thread.

But unfortunately when i click on a button to call webservices it hangs for a which then a response is return.

so eventually i am failed to create asynchronous web service request..

so please do help me how i would achieve this so that my other javafx component wont hang....

Nihar (ntimesc@gmail.com)

Nihar

Hi Jim ,
I have read your article regarding Asynchronicty in JavaFX. it is really a helpful and informative article.

As of now i am working on a application which extensively making webservices calls to perform ongoing computation i have chose javafx as a user interface platform. after reading your article i have tried to create new thread as and when a new webservice request is made.

i have implemented RunnableFuture in the class which is making webservices request.

so does this approach work fine for ongoing computational webservices with javafx ui ?


VictorCharlie

I copied and pasted the example code shown into a NetBeans Project, FX 1.2 (Linux). It won't compile. And the block seems to happen at the mixin Inheritance feature, which I suspect, is related to the interface. TaskController insists that only one non-mixin FX class can be extended. FX doesn't like the interface at all. The parsing keeps insisting we left out a semicolon on the interface.

Forgive me for asking this here. But I did buy the first Apress FX book, got excited, then Java dumps Linux. Now Linux is back on board with 1.2 and I'm trying to learn JavaFX vers. 1.2. Each FX version had profound vocubulary changes that requires re-engineering the examples I do find on the web.

The comments to this entry are closed.

Categories