code: public void updateBounds ()
      {
          // invalidate the old...
          invalidate();
  
          // size the bounds to fit our label
          Dimension size = _label.getSize();
          _bounds.width = size.width + PADDING*2 +
              (_style == ROUNDED ? _arcWidth : 0);
          _bounds.height = size.height + PADDING*2;
  
          // ...and the new
          invalidate();
      }
docs: Updates this sprite's bounds after a change to the label.