'java.awt.graphics.* draw oval function is not working
I need to draw a circle in project I'm working on, I am using java.awt.graphics.* to draw it using the drawOval(); method, but it is not working.
Here is a code snippet:
public void paint(Graphics g)
{
g.setColor(Color.GREEN);
g.drawOval(480,480,200,200);
g.fillOval(480, 480, 200, 200);
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
