<java>No enclosing instance of type GraphicFrame is accessible. Must qualify the allocation with an
摘要:从我的网易博客移动。。。。。这个错误是一个内部类错误。。是指 内部类,实例化的时候要先实例化外部类。原来的代码:public class GraphicFrame extends Frame { public static void main(String[] args){ GraphicFrame rui = new GraphicFrame(); rui.addWindowListener(new Winadp());//这里发生了上述错误 } class Winadp extends WindowAdapter { public void windowClos...
阅读全文
posted @ 2012-03-22 20:43