Using NetBeans to write Java code can increase your productivity. NetBeans brings together all of the Java tools, from runtime to compiler, with program editing tools into one environment. You can perform a task that is relatively complex in Java programming, such as drawing a circle, efficiently using NetBeans. import java.awt.; import java.awt.event.; import java.awt.geom.*; public class CircleDraw extends Frame { Shape circle = new Ellipse2D.Float(100.0f, 100.0f, 100.0f, 100.0f); Shape square = new Rectangle2D.Double(100, 100,100, 100); public void paint(Graphics g) { Graphics2D ga = (Graphics2D)g; ga.draw(circle); ga.fill(circle); ga.setPaint(Color.red); ga.draw(square); } public static void main(String args[]) { Frame frame = new CircleDraw(); frame.addWindowListener(new WindowAdapter(){ public void windowClosing(WindowEvent we){ System.exit(0); } }); frame.setSize(300, 250); frame.setVisible(true); } This code will create a new system window, call the CircleDraw function, and draw the circle in the new window. Writer Bio

How to Draw a Circle in NetBeans - 36