I'm rather confused about the graphics class, drawing and the roles of the different classes.
I've successfully created a Path which the graphics within the paint function of a component draws using PathStroke as a multisegment line. However, when I update the nature of the line, I cannot clear what has been drawn. Therefore the new line is drawn over the top. I've tried creating an image, clearing the image each time the line is altered, but that doesn;t work either. I'm sure I just don't understand the rhyme of reason, but I cannot fathom whay you simply cannot clear what has been drawn by the graphics within paint and paint a new line.
Can anyone step me through this please?