Can I change thickness of a line in Graphics without using Graphics2D?

Premkumar AC

You can achieve this by drawing a rectangle (the width being the thickness and the height being the line length).

[FAQ Manager Note] Note that this will only work for vertical and horizontal lines. For non v/h lines, you'll just have to redraw the same line shifted one pixel at a time (make sure you shift both endpoints by the same amounts).