109110111112113114115116
@Override public void itemStateChanged(ItemEvent e) { if (e.getStateChange()!=ItemEvent.SELECTED) { return; } ScaleName sn=(ScaleName)scaleComboBox.getSelectedItem(); showScale(sn); }
8081828384858687
//ItemListener public void itemStateChanged(ItemEvent e) { if (e.getStateChange()!=ItemEvent.SELECTED) { return; } ScaleName scaleName=(ScaleName)scaleList.getSelectedItem(); scaleTable.setModel(new ScaleTableModel(scaleName, Note.MAJOR_NAMES)); }