Hi, I have the following code to draw a line in the Paintable Canvas:
[code]from java.awt import Color
from java.awt import Graphics
from java.awt import Graphics2D
from java.awt.geom import Line2D
g = event.graphics
g.drawLine(event.source.xTA-7, event.source.yTA-9, event.source.xTB-7, event.source.yTB-9)[/code]
But I want to vary the thickness of the line. It seems that I might have to use setStroke in the Graphics2D object, but coding that is beyond me. Can anyone help here?