Answer to Question #622 in Java | JSP | JSF for Steven
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).
No comments. Be first!