This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JavaFX and the fly likes a simple application took my couple of month Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JavaFX
Bookmark "a simple application took my couple of month" Watch "a simple application took my couple of month" New topic
Author

a simple application took my couple of month

Lek Kin Wong
Ranch Hand

Joined: Feb 23, 2010
Posts: 30
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".

After that, I tried to take focus on "onInput: function(is$1: java.io.InputStream)"

The download is working but it make the application so lag even I put it onto a separate thread.

Just a simple download application in mobile took my couple of month... someone please help me...
Thanks.
Srikanth Shenoy
author
Ranch Hand

Joined: Jan 24, 2004
Posts: 184
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

Thanks,
Srikanth


Srikanth Shenoy
Author of Struts Survival Guide : Basics to Best Practices
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: a simple application took my couple of month
 
Similar Threads
Unable to create/find new file
Unable to create file
bluetooth connction blocks file creation
JavaFX inWM6.5 / Download a file from internet
"Allow Application to read data In" Block this alert