执行程序,发现以下错误请版主大虾明示!!! import java.awt.*; public class Plot extends java.applet.Applet{ Label statLabel = new Label("Current Statistics:"); Graph stats = new Graph();
public void init(){ BorderLayout border = new BorderLayout(); setLayout(border); add("North",statLabel); add("Center",stats); } } class Graph extends java.awt.Canvas{ int[] point = {1,10,3,5,8,7,2,2,5,9,};
public void paint (Graphics screen){ for(int i=0;i<10;i++){ Color blueHue = new Color (0,0,255-(i*20)); screen.SetColor(blueHue); screen.fillRect(0,i*20,point[i]*20,17); } } } Plot.java:19:can not symbol symbol:methhod setColor(java.awt.Color) location:class java.awt.Graphics screen.setColor(blueHue);