fRun.setEnabled(fSuiteField.getText().length() > 0);
fStatusLine.setText("");
}
}
);
fRun= new Button("Run");
fRun.setEnabled(false);
fRun.addActionListener(
new ActionListener() {
public void actionPerformed(ActionEvent e) {
runSuite();
}
}
);
boolean useLoader= useReloadingTestSuiteLoader();
fUseLoadingRunner= new Checkbox("Reload classes every run", useLoader);
if (inVAJava())
fUseLoadingRunner.setVisible(false);
//---- second section
fProgressIndicator= new ProgressBar();
//---- third section
fNumberOfErrors= new Label("0000", Label.RIGHT);
fNumberOfErrors.setText("0");
fNumberOfErrors.setFont(PLAIN_FONT);
fNumberOfFailures= new Label("0000", Label.RIGHT);
fNumberOfFailures.setText("0");
fNumberOfFailures.setFont(PLAIN_FONT);
fNumberOfRuns= new Label("0000", Label.RIGHT);
fNumberOfRuns.setText("0");
fNumberOfRuns.setFont(PLAIN_FONT);
Panel numbersPanel= createCounterPanel();
//---- fourth section
Label failureLabel= new Label("Errors and Failures:");
fFailureList= new List(5);
fFailureList.addItemListener(
new ItemListener() {
public void itemStateChanged(ItemEvent e) {
failureSelected();
}
}
);
fRerunButton= new Button("Run");
fRerunButton.setEnabled(false);
fRerunButton.addActionListener(
new ActionListener() {
public void actionPerformed(ActionEvent e) {
rerun();
}
}
);
Panel failedPanel= new Panel(new GridLayout(0, 1, 0, 2));
failedPanel.add(fRerunButton);
fTraceArea= new TextArea();
fTraceArea.setRows(5);
fTraceArea.setColumns(60);
//---- fifth section
fStatusLine= new TextField();
fStatusLine.setFont(PLAIN_FONT);
fStatusLine.setEditable(false);
fStatusLine.setForeground(Color.red);
fQuitButton= new Button("Exit");
fQuitButton.addActionListener(
new ActionListener() {
public void actionPerformed(ActionEvent e) {
System.exit(0);
}