private void about() { AboutDialog about= new AboutDialog(fFrame); about.setModal(true); about.setLocation(300, 300); about.setVisible(true); }
public void reset() { fProgressX= 1; fProgress= 0; fError= false; paint(getGraphics()); }
public void paint(Graphics g) { paintBackground(g); paintStatus(g); }
public static void main(String[] args) { new TestRunner().start(args); }
public void testEnded(String testName) { setLabelValue(fNumberOfRuns, fTestResult.runCount()); synchronized(this) { fProgressIndicator.step(fTestResult.wasSuccessful()); } }
public void actionPerformed(ActionEvent e) { runSuite(); } }
public void windowClosing(WindowEvent e) { dispose(); } }
protected void clearStatus() { showStatus(""); }
public void start(int total) { fTotal= total; reset(); }
public void actionPerformed(ActionEvent e) { rerun(); } }
public void itemStateChanged(ItemEvent e) { failureSelected(); } }
public ProgressBar() { super(); setSize(20, 30); }
public void testStarted(String testName) { showInfo("Running: "+testName); }
public void paint(Graphics g) { paintBackground(g); if (fImage != null) g.drawImage(fImage, 0, 0, fWidth, fHeight, this); }
public void paintBackground(Graphics g) { g.setColor(SystemColor.control); Rectangle r= getBounds(); g.fillRect(0, 0, r.width, r.height); g.setColor(Color.darkGray); g.drawLine(0, 0, r.width-1, 0); g.drawLine(0, 0, 0, r.height-1); g.setColor(Color.white); g.drawLine(r.width-1, 0, r.width-1, r.height-1); g.drawLine(0, r.height-1, r.width-1, r.height-1); }
public void actionPerformed(ActionEvent e) { runSuite(); } }
public void actionPerformed(ActionEvent e) { dispose(); } }
protected void runFailed(String message) { showStatus(message); fRun.setLabel("Run"); fRunner= null; }