>>833
((Graphics2D)g).setStroke(new BasicStroke(10));
g.drawLine(0, 0, 100, 100);