import java.awt.*;public class TestFrame
{
public static void main(String[] args)
{
Window w = new Frame("hello frame");
w.setSize(170,100);
w.setBackground(Color.red);
w.setResizable(false);//error
w.setVisible(true);
}
}error这行我不明白为什么。
Window w = new Frame("hello frame");我认为是多态的概念,那么w调用setResizable()时候应该是可以的啊?可不知道结果为啥这样。
请各位解答。谢谢