995996997998999100010011002100310041005
if (jpb != null) { jpb.setIndeterminate(false); jpb.setMaximum(total); jpb.setValue(value); if (ThreadWorks.Swing.isEventDispatchThread()) { jpb.paintImmediately(jpb.getBounds()); } else { jpb.repaint(); } } return id;