Show Different Strokes
To give the the impressive and stylistic outline, class BasicStroke is used. The value passed in the constructor of the class BasicStroke shows the thickness of outline.
Show Transparent Text
To draw the text, Font class is used. To show transparency over the specified text, the class AlphaComposite is used which shows the transparency effects with graphics.