一个白痴问题,但路见不平,拔刀相助,谢谢
import java.awt.*;
import java.applet.*;
public class b extends Applet
{
public void paint(Graphics g)
{
//g.drawString( "Java Now! ",25,25);
Color C=new Color(255,0,0);
int [] x={50,75,25};
int []y={80,60,60};
g.drawPolygon(x,y,3);
g.setColor(C);
}
};我建了html了,但说小应用程序notinited
------解决方案--------------------先setColor, 然后再draw试试