阅读背景:

在方法javafx之外调用变量

来源:互联网 

I made a progressbar and it works perfectly. The only issue is that i want to show the progress percentage. first some background information: Netwerk reads in a large file(=bestand) line by line and everytime it reads a line a counter goes up by 1. So the percentage i want to get is the (counter/1380)*100 with 1380 is the number of lines the scanner reads in. When I run it Netwerk reads in the file while the progressbar is running and the progressbar stops when the scanner is ready (so this works perfectly). But the percentage doesn't upgrade. When I debugged I discovered that updateprogress is called after Netwerk has finished reading and therefore the percentage stays at -100%. Does someone have a solution for this?I made a progressbar and it works perfectly. Th




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: