JComboBox cb = (JComboBox)e.getSource(); int i = cb.getSelectedIndex (); ((CardLayout)mCard.getLayout()).show(mCard, mVoicesBanks[i]);
if (e.getStateChange() == ItemEvent.SELECTED) { JComboBox cb = (JComboBox)e.getSource(); int oSelIndex = cb.getSelectedIndex (); mVoiceSelector[mPart-1].cb.removeAllItems(); if (oSelIndex > 0) { for(int i = 0; i < 128; i++) { mVoiceSelector[mPart-1].cb.addItem(mPrVoices[oSelIndex-1][i]); } } }
		public void itemStateChanged (ItemEvent e)		{			JComboBox cb = (JComboBox)e.getSource();			int i = cb.getSelectedIndex ();			((CardLayout)mCard.getLayout()).show(mCard, mVoicesBanks[i]);		}