Home Segments Top Top Previous Next

1120: Mainline

Once you have defined a path's shape, you use the draw method to draw that path on an instance of Graphics2D, g:

g.draw(path);