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.
Thank you Widdershins, but I don;t think you're understanding the problem. The issue is that when redrawing a new line, the old one remains, and wiping the component for a clear slate before I do so is the issue.
Haha! Yes indeed as a beginner I probably think about it very much in an MSPaint kind of way. However, if the screen is redrawn every time, why does the follow code note redraw the screen with white ready for the next line to be drawn?