private void updateSlider()
void updateSlider()
  private void updateSlider()  {    if (slider == null)      return;    slider.setMinimum(0);    if (locked == HLOCKED)      {	slider.setMaximum(359);	;	slider.setValue(((Number) hSpinner.getValue()).intValue());	slider.setInverted(true);      }    else      {	slider.setMaximum(100);	slider.setInverted(false);	if (sRadio.isSelected())	  slider.setValue(((Number) sSpinner.getValue()).intValue());	else	  slider.setValue(((Number) bSpinner.getValue()).intValue());      }    repaint();  }