有错的程序
import java.applet.*;import java.awt.*;
import java.awt.image.*;
import java.awt.geom.*;
public class Rect1 extends Applet
{
public void paint(Graphics g){
Graphics2D a=(Graphics)g;
BasicStroke bs=new BasicStroke(6.0f,BasicStroke.CAP_ROUND,BasicStroke.JOIN_MITER);
a.setStroke(bs);
a.draw3DRect(32,32,100,100,true);
}
}