Set stroke, thickness (line width)
Set thickness of line: .
Graphics2D g2 = (Graphics2D)g; g2.setStroke(new BasicStroke(10)); //now draw line as normal