9 Replies Latest reply: Nov 28, 2009 7:13 PM by 807580 RSS

    Receiving the percentage of a file loaded?


      Hello everyone!
      I'm currently struggeling more than a bit, trying to figure out, how I can make my UI tell me how many percentages of my file that has been loaded..
      I want it to say like: "Loading cache - PERCENTAGE%" and of course I want PERCENTAGE to be replaced with a increasing number.. You know, I would like it to start at '0%' and then go all the way up. All I need is some 'getPercentage()' method or something like that, because I already got the JLabel figured out, but my own getPercentage() method didn't help at all.. :/
      So if you could just show me how to do this, I would REALLY appreciate it! :)