String oVStr = Integer.toString(oValue + mBase); t.setToolTipText(oVStr); t.setValueAsString(oVStr); KnobWidget.super.setValue(oValue); if (mLabelImage != null) { mLabelImage.setIcon(mImages[oValue]); } sendSysex();
String oVStr = Integer.toString(oValue + mBase); t.setToolTipText(oVStr); t.setValueAsString(oVStr); KnobWidget.super.setValue(oValue); if (mLabelImage != null) { mLabelImage.setIcon(mImages[oValue]);
	protected void setupListener() {	    // Add a change listener to the knob	    mKnob.addChangeListener(new ChangeListener() {		    public void stateChanged(ChangeEvent e) {				DKnob t = (DKnob) e.getSource();		    int oValue = Math.round(t.getValue() * (valueMax - valueMin)) + valueMin;				String oVStr = Integer.toString(oValue + mBase);				t.setToolTipText(oVStr);				t.setValueAsString(oVStr);								KnobWidget.super.setValue(oValue);				if (mLabelImage != null) {					mLabelImage.setIcon(mImages[oValue]);				}				sendSysex();		    }	      });	}