public void run() { progression_.setValue(v); //BuUpdateGUI.repaintNow(progression_); } });
public void run() { progression_.setValue(v); // BuUpdateGUI.repaintNow(progression_); } });
public void reset() { bar_.setValue(0); bar_.setString(CtuluLibString.EMPTY_STRING); }
public void setProgression(int _v) { if (SwingUtilities.isEventDispatchThread()) { progression_.setValue(_v); } else { final int v = _v; try { SwingUtilities.invokeAndWait(new Runnable() { public void run() { progression_.setValue(v); // BuUpdateGUI.repaintNow(progression_); } }); } catch (InterruptedException ex) {} catch (InvocationTargetException ex) { FuLog.error(ex); } } /* * progression_.setValue(_v); BuUpdateGUI.repaintNow(progression_); */ } }
public void setProgression(int _v) { int vInit=_v; if(progression_!=null) { if(vInit< 0) vInit=0; if(vInit>100) vInit=100; if(progression_.getValue()!=vInit) { if(SwingUtilities.isEventDispatchThread()) { progression_.setValue(vInit); } else { final int v=vInit; SwingUtilities.invokeLater(new Runnable() //AndWait { public void run() { progression_.setValue(v); //BuUpdateGUI.repaintNow(progression_); } }); } } } } }
public void setProgression(final int _v) { bar_.setValue(_v); if (desc_ == null) { bar_.setString(Integer.toString(_v) + " %"); } bar_.setString(desc_ + " - " + Integer.toString(_v) + " %"); if (_v >= 100) { reset(); } }
progress_.setValue(0); add(progress_); revalidate();
public boolean doAnim() { if (isFinished_) { throw new IllegalAccessError("must be stopped"); } if (currentIdx_ > realLastIdx_) { finished(); return false; } src_.setTimeStep(currentIdx_); if (saveOut_) { final BufferedImage image = src_.produceImage(width_, height_, null); if (image == null) { src_.produceImage(null); } for (int j = outsActivated_.length - 1; j >= 0; j--) { outsActivated_[j].appendFrame(image, currentIdx_ == realLastIdx_); } if (image != null) { image.flush(); } } bar_.setValue(100 - ((int) (((double) (realLastIdx_ - currentIdx_)) / ((double) nbStep_) * 100))); bar_.setString(CtuluLib.getS("Pas de temps:") + CtuluLibString.ESPACE + src_.getTimeStep(currentIdx_)); currentIdx_ += inc_; return currentIdx_ <= realLastIdx_; }
progression_.setMinimum(0); progression_.setMaximum(100); progression_.setValue(0); progression_.setName("pgTASKPROGRESS"); progression_.setPreferredSize(new Dimension(120,14));