}
private class FirstComboListener implements ActionListener {
public void actionPerformed(ActionEvent e) {
ComboBoxWithModel combo = (ComboBoxWithModel) e.getSource();
String selection = combo.getSelectedItem().toString();
combo.setSelectedItem(selection);
int index=combo.getSelectedIndex();
for(int i=1;i<linkedComboBox.getComboBoxes().length;i++)
{
linkedComboBox.setModelToComboBox(i, index);
}