, , - . . GUI ( - , ).
, , ( ).
, ProgressTracker ( : ). JProgressBar, JLabel, ... ProgressTracker , .
SwingWorker has some code that helps merge several updates, but it is built on the assumption that long-running tasks should inherit from SwingWorker, which does not help separate problems. It really depends on you in which direction - I personally prefer that operations with my data have nothing to do with the graphical interface.
Remember to post your updates for any Swing components on EDT using SwingUtilities.invokeLater ()
source
share