Answer:
paintComponent
Explanation:
According to my research on java programming and it's pre-build methods, I can say that based on the information provided within the question this should be placed inside the paintComponent method. This is a method that (like mentioned in the question) is called when the user did something with the user interface that requires redrawing.
I hope this answered your question. If you have any more questions feel free to ask away at Brainly.