Exemplo n.º 1
0
 /**
  * Enables the component so that the knob position can be changed. When the disabled, the knob
  * position cannot be changed.
  *
  * @param x a boolean value, where true enables the component and false disables it
  */
 public void setEnabled(boolean x) {
   super.setEnabled(x);
   Component[] children = getComponents();
   for (Component child : children) {
     child.setEnabled(x);
   }
 }
Exemplo n.º 2
0
 /**
  * Enables the component so that the knob position can be changed. When the disabled, the knob
  * position cannot be changed.
  *
  * @param x a boolean value, where true enables the component and false disables it
  */
 public void setEnabled(boolean x) {
   super.setEnabled(x);
   Component[] children = getComponents();
   for (int i = 0; i < children.length; i++) {
     children[i].setEnabled(x);
   }
 }