Creating a Shape from a Stroked Shape float strokeThickness = 5.0f; BasicStroke stroke = new BasicStroke(strokeThickness); Shape newShape = stroke.createStrokedShape(shape);