code: public Shape createInternalDropShadowRounded(final int x, final int y, final int w, final int h) {
          final double radius = h / 2;
          final int    right  = x + w;
          final double bottom = y + radius;
  
          path.reset();
  
          // Upper edge.
          path.moveTo(x, bottom);
          path.quadTo(x, y, x + radius, y);
          path.lineTo(right - radius, y);
          path.quadTo(right, y, right, bottom);
  
          // Lower edge.
          path.lineTo(right - 1, bottom);
          path.quadTo(right - 2, y + 2, right - radius - 1, y + 2);
          path.lineTo(x + radius + 1, y + 2);
          path.quadTo(x + 2, y + 2, x + 1, bottom);
  
          path.closePath();
  
          return path;
      }
docs: Return a path for a rounded internal drop shadow. This is used for
  progress bar tracks and search fields.
  
  @param  x the X coordinate of the upper-left corner of the shadow
  @param  y the Y coordinate of the upper-left corner of the shadow
  @param  w the width of the shadow
  @param  h the height of the rectangle
  
  @return a path representing the shadow.