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