The Property Change Event Of Progress Bar Not Firing

后端 未结 2 546
难免孤独
难免孤独 2021-01-24 18:15

I am using JProgressBar for Showing The Progress Of Data Loaded From from DataBase . I am using SwingWorker Class To Load The Data In BackGround Thread using Tutorial!

T

2条回答
  •  温柔的废话
    2021-01-24 18:59

    @mKorbel has cited many instructive examples, but the key is invoking setProgress() from the worker's doInBackground(). SwingWorker handles the required synchronization. Several helpful answers expand on the topic in this related Q&A, including a reference to this example.

提交回复
热议问题