Back to project page ddgatve-android.
The source code is released under:
Apache License
If you think the Android project ddgatve-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package lv.ddgatve.applets; /* ww w . j ava 2 s . c o m*/ import java.awt.Color; import java.awt.Graphics; import javax.swing.JApplet; // assume that the drawing area is 150 by 150 public class PlainCircleApplet extends JApplet { final int radius = 25; public void paint(Graphics g) { g.setColor(Color.white); g.fillRect(0, 0, 150, 150); g.setColor(Color.black); g.drawOval((150 / 2 - radius), (150 / 2 - radius), radius * 2, radius * 2); } }