MenuBar mb = new MenuBar();
createMenus(mb);
frame.setMenuBar(mb);
//---- first section
Label suiteLabel= new Label("Test class name:");
fSuiteField= new TextField(suiteName != null ? suiteName : "");
fSuiteField.selectAll();
fSuiteField.requestFocus();
fSuiteField.setFont(PLAIN_FONT);
fSuiteField.setColumns(40);
fSuiteField.addActionListener(
new ActionListener() {
public void actionPerformed(ActionEvent e) {
runSuite();
}
}
);
fSuiteField.addTextListener(
new TextListener() {
public void textValueChanged(TextEvent e) {
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) {