jprogressbar

Can a progress bar be used in a class outside main?

ⅰ亾dé卋堺 提交于 2019-11-26 01:18:07
问题 Right now, my main just calls a gui with 10 rows. Based on how many of those rows have text, 1 of 9 classes is called (two rows must have text). The called class performs calculations that I\'d like to have the progress bar tied to. Here is an example of one of the called classes (each class is similar, but different enough to warrant a new class.) I believe the problem is a violation of EDT rules, but all the examples I\'ve seen on them involve a main argument. The frame appears when the

Display indeterminate JProgressBar while batch file runs

女生的网名这么多〃 提交于 2019-11-26 00:13:50
问题 I\'ve been browsing SO and google for a while now for an answer to this question, but I can\'t seem to find one that really works. I\'ll start from the beginning: I created a Java class with a method that runs a batch file in the background (the command window does not appear). The program works great, except that it would be a little confusing to the end user, since the batch file takes a while to complete--the user will not know if the program is still running or not. After the batch script