} public void main(String argsp[]){ BorderLayout f=new BorderLayout(); f.show(); } public void show(){ f=new Frame("BorderLayout布局演示"); /* f.addWindowListener(new WindowAdapter(){ public void windowClosing(WindowEvent evt){ f.setVisible(false); f.dispose(); System.exit(0); }
});*/ f.setSize(400,300); f.setLayout( new BorderLayout()); 提示报错 The method setLayout(LayoutManager) in the type Container is not applicable for the arguments (BorderLayout) 何解??