hc++ 0 Newbie Poster

Hello there,

I am trying to make an applet that would let the user move a dot around a bounding circle. (The dot has to move along the circle's boundary, see the attached example image)

I am having trouble updating the dot's position, because the bounding circle gets erased while updating the dot's position. How do I only repaint the dot for each update without affecting the bounding circle?

Thank you for your help!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.