I am building a simple application which designed for Windows Mobile to download a file from Internet, here is a part of my code:
At first, I thought "sink" is run on the separate thread just like javafx.async.RemoteTextDocument does, but it just block my main application thread.
So I tried to put it into another thread, the "block" problem is gone as expected. However, it just block the "HttpRequest thread".
Which version of JavaFX are you using. That code doesnt even remotely look familiar to me. Is it JavaFX 1.1 ?
Check the javadoc of JavaFX 1.2 or 1.3 for a detailed code snippet on how to use the HttpRequest