confPanel.add(numberSpinner, gbc);
return confPanel;
}
@Override
public void initData() {
TuneFactory rtf=TuneFactory.getRandomFactory();
bothHandsCheck.setSelected(rtf.isBothHands());
lowerBoundBass.setValue(rtf.getLowerBoundBass());
upperBoundBass.setValue(rtf.getUpperBoundBass());
lowerBoundTreble.setValue(rtf.getLowerBoundTreble());
upperBoundTreble.setValue(rtf.getUpperBoundTreble());
if (rtf.getLowerBoundBass()==0 && rtf.getLowerBoundTreble()==0 &&
rtf.getUpperBoundBass()==0 && rtf.getUpperBoundTreble()==0) {
lowerBoundBass.setValue(0);
upperBoundBass.setValue(63);
lowerBoundTreble.setValue(64);
upperBoundTreble.setValue(127);
}
numberSpinner.setValue(rtf.getNoteCount());
Scale s=rtf.getScale();
if (s==null) {
majorCheck.setSelected(true);
for (NoteName nn:Scale.MAJOR_SCALES_CLASSIC_EN) {
scaleBox.addItem(nn);
}