How do I draw a line of any thickness in JDK 1.1?

John Zukowski

Prior to the Java 2D API, all lines were drawn at a thinkness of one. If you need a wider line, you would need to draw multiple lines next to each other (or a rectangle, if the line is horizontal or veritcal - diagonal lines would need to be rotated if you relied on a filled rectangle)