Using threads in a graphical program
This is about threads but I posted here because it's really basic.
So I've read a tutorial on concurrency but I'm not sure where exactly I should use threads within the program. I'm not looking for code just an explanation.
I've been messing around with this application to try things out. It's just an extension of a JPanel that draws squares when you click, but let's say first you clicked all your points, then pressed a button that did all the drawing. How could I make that a thread, so then someone else could click points on the canvas and press the button when they wanted to get their squares (in a separate thread)?