Can't update value of JProgressBar from another thread when adding another items
问题 I have a problem with displaying current status(in JProgressBar) while adding another components to JPanel. This operation is heavy and takes at about 2 seconds with 20 iterations (adding 20 items). But it can be 100 items. So I need to achieve displaying current status of every iteration in JProgressBar, but I can't realize how to do it. (In my code it is value perc ) And can you explain how EDT works? Is it adding events into queue to the end? Thank you! My JProgressBar object: