How to draw a circle on JPanel?
You have to use the method «getGraphics» for the panel in the method that will draw objects. For the variable that will contain the graphic panel you will have then to call the method «drawOval» with the coordinates of the circle and two identical radiuses (for the object to be round, not oval).
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
JavaJSPJSF