if (driver.patchNumbers.length > 1) { for (int i = 0 ; i < driver.patchNumbers.length ; i++) { patchNumComboBox.addItem(driver.patchNumbers[i]);
String patchNumbers[] = driver.getPatchNumbers(); if (patchNumbers.length > 1) { for (int i = 0 ; i < patchNumbers.length ; i++) { patchNumComboBox.addItem(patchNumbers[i]);
    public void actionPerformed (ActionEvent evt) {//       ErrorMsg.reportStatus("DriverActionListener->actionPerformed");      Driver driver = (Driver) driverComboBox.getSelectedItem();      if (driver == null) 	// for driverComboBox.removeAllItems()	return;      bankComboBox.removeAllItems();      patchNumComboBox.removeAllItems();      if (driver.bankNumbers != null && driver.bankNumbers.length > 1) {	for (int i = 0 ; i < driver.bankNumbers.length ; i++) {	  bankComboBox.addItem(driver.bankNumbers[i]);	}      }      bankComboBox.setEnabled(bankComboBox.getItemCount() > 1);      if (driver.patchNumbers.length > 1) {	for (int i = 0 ; i < driver.patchNumbers.length ; i++) {	  patchNumComboBox.addItem(driver.patchNumbers[i]);	}      }      // N.B. Do not enable patch selection for banks      patchNumComboBox.setEnabled(!(driver instanceof BankDriver)				  && patchNumComboBox.getItemCount() > 1);    }