private CustomProgressBar createProgressBar() { final CustomProgressBar progress = new CustomProgressBar(); progress.setName("PROGRESSBAR"); color = UNKNOWN_COLOR; Timer timer = new Timer( animator.getAnimationRate(), new ActionListener() { @Override public void actionPerformed(ActionEvent e) { progress.setForeground(animator.shiftColorOnAnimationTick(color)); progress.repaint(); animator.tick(); } }); timer.start(); return progress; }
public void setStatusMessage(String statusMessage) { progressBar.setStatusMessage(statusMessage); }
public void setCurrentTest(String testName) { progressBar.setCurrentTest(testName); }