Using swingworker to update a JProgressBar during download

后端 未结 1 1406
感情败类
感情败类 2021-01-21 11:11

QUESTION SOLVED!!!!!! Many thanks to trashgod and HoverCraftFullOfEels! I finally got the concept by using the below example and altering it slightly. The alteration allows scal

1条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-21 12:06

    Updating a progress bar is usually handled in a PropertyChangeListener, as shown here. See also this related example. Invoking setIndeterminate(true) is a reasonable initial setting if your worker can later offer more definitive progress.

    0 讨论(0)
提交回复
热议问题