哇,好帅呀,要怎么画呀
import java.awt.*; import java.applet.*;
public class Luo extends Applet { int w,h,x,y,x0,y0; public void init() { w = getSize().width / 2; h = getSize().height / 2; x = w; y = h; x0 = w - 5; y0 = h - 5; } public void paint(Graphics g) { for(int i = 0;i < 6;i++) { x = x - 10; y = y - 10; x0 = x0 - 10; y0 = y0 - 10; g.drawArc(x,y,(h-y)*2,(h-y)*2,0,180); g.drawArc(x0+5,y0,(h-y0)*2,(h-y0)*2,180,180); } } } 用的很笨的办法才画出来的