jf.setLayout(new BorderLayout()); 这一句在j2se 1.4.2里是不赞成使用的,虽然能编译,但执行时报错:java.lang.Error: Do not use javax.swing.JFrame.setLayout() use javax.swing.JFrame.getContentPane().setLayout() instead
at javax.swing.JFrame.createRootPaneException(JFrame.java:465)
at javax.swing.JFrame.setLayout(JFrame.java:531)
at test.FileClielt.FileClielt(FileClielt.java:35)
at test.FileClielt.main(FileClielt.java:71)
Exception in thread "main" 改成下边这样:jf.getContentPane().setLayout(new BorderLayout());
at javax.swing.JFrame.createRootPaneException(JFrame.java:465)
at javax.swing.JFrame.setLayout(JFrame.java:531)
at test.FileClielt.FileClielt(FileClielt.java:35)
at test.FileClielt.main(FileClielt.java:71)
Exception in thread "main" 改成下边这样:jf.getContentPane().setLayout(new BorderLayout());
解决方案 »
- Exception starting filter struts2 此异常如何解决?
- 求高手帮忙:用myeclipse做bbs网站,运行不了,显示信息如下
- 灵异路径
- spring security + struts url问题
- 想问下关于在家部署网站服务器并支持互联网访问的问题
- 求正则表达式
- 高手们,jboss下jca问题求助,附所有源码
- EJB部署
- JAVA引用
- 用axis+tomcat做webservices 我想把处理出来的结果写在一个xml文件里面怎么办?
- 还用IDEA+TOMCAT,现在我的WEB.XML导不进explode下…
- 初学者JBuilder9 EJB CMP问题,执行ejb组件问题
帮忙看看!!!
so.write(......);
soOutStream.write(......);