• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Download progress bar freezing up when downloading Jar files

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to create a download progress bar that shows the progress of the download of a Jar file. I have 1 jar file that loads multiple others, so from within the main Jar file, I have callbacks that call back to the javascript of the HTML. I want to use these callbacks to update a html progress bar through javascript.

This is what I have so far:

When the javascript receives a callback from java, I print it to the console, and also change the text of the loading bar.



The status prints fine in the browser console, but the loading bar text is only updated after the Jar file has been downloaded (It only shows 100% and nothing in between) In other words, It freezes completely until the downloads are all done.

I call back to Js using the following line of code at multiple places within my Java:

window.call("LoadingState", new Object[]{50,"Updater"});

And this is what the console receives:


However, nothing happens on the progress bar until the loading is completely done. Is there a way to get around this freeze?
 
So you made a portal in time and started grabbing people. This tiny ad thinks that's rude:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic