code: public void setValue(final int VALUE) {
          value = VALUE < 0 ? 0 : (VALUE > 100 ? 100 : VALUE);
          init(getWidth(), getHeight());
          repaint(INNER_BOUNDS);
      }
docs: Sets the current charge of the battery as integer from 0 - 100
  @param VALUE