String s="java.awt.Window";
Object f=Class.forName(s).newInstance();Component c=(Window)f;
c.setVisible(true);
请各位大哥想想办法,让上面这段程序能够运行,谢谢!