Demo Program for changing line thickness
Here is a programming example to show you how to use the setStroke method of the Graphics2D class to change the thickness of lines drawn in Java:
Simple program that draws lines of various thickness
Sample Output produced by the Demo program
Refer to the Javadocs for the
setStroke method
by using this link
Also refer to the Javadocs for the
BasicStroke(width)
constructor used in the demo program