这几天在用Netbeans6.1RC1 发现了一些问题,不知道大家有没有遇到呢?问题如下:
1.在新建一个桌面应用程序的时候 最后一步点击Finish以后就会跳出两个对话框,说“TestView.java被修改过了,是否重新载入”让你选择是否重新载入
如果你点击了yes 当你运行程序的时候就会出现下面的异常, 如果你点击No就不会出现问题了
2.还有个问题是关于 JSF的,是在 Netbeans中文社区里有人提出来的,在NetBeans6.0.1版本中可以实现 组件的自动绑订但是在6.1RC1里就不行了,必须要右键组建选择Add Bingding Attribute 我觉得这应该是一个bug,下面是截图。
我原本以为在NetBeans6.0.1中可以完成的 在NetBeans6.1中应该也是可以完成的,后来自己测试的时候才发现并不是我想象中的那样。
这是NetBeans6.0的官方JSF的教程连接
http://www.netbeans.org/kb/60/web/helloweb_zh_CN.html
用Netbeans6.1RC1做的时候就会出先下面的问题。
注意:下面的 TextField1.gettext();方法中 TextField1是在没有改变IDE自动生成的代码的前提下写的,有兴趣的朋友可以帮忙测试一下!
好了今天就写这么多吧,明天继续写关于学习国际化的内容!
1.在新建一个桌面应用程序的时候 最后一步点击Finish以后就会跳出两个对话框,说“TestView.java被修改过了,是否重新载入”让你选择是否重新载入
如果你点击了yes 当你运行程序的时候就会出现下面的异常, 如果你点击No就不会出现问题了
init:
deps - jar:
Created dir: D: " BackUp " My Documents " NetBeansProjects " TestApp " build " classes
Compiling 3 source files to D: " BackUp " My Documents " NetBeansProjects " TestApp " build " classes
Copying 22 files to D: " BackUp " My Documents " NetBeansProjects " TestApp " build " classes
compile:
run:
2008 - 4 - 16 17 : 15 : 39 org.jdesktop.application.Application$ 1 run
严重: Application class testapp.TestApp failed to launch
java.lang.NullPointerException
at testapp.TestView. < init > (TestView.java: 49 )
at testapp.TestApp.startup(TestApp.java: 19 )
at org.jdesktop.application.Application$ 1 .run(Application.java: 171 )
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java: 209 )
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 597 )
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java: 273 )
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java: 183 )
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java: 173 )
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java: 168 )
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java: 160 )
at java.awt.EventDispatchThread.run(EventDispatchThread.java: 121 )
Exception in thread " AWT-EventQueue-0 " java.lang.Error: Application class testapp.TestApp failed to launch
at org.jdesktop.application.Application$ 1 .run(Application.java: 177 )
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java: 209 )
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 597 )
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java: 273 )
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java: 183 )
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java: 173 )
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java: 168 )
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java: 160 )
at java.awt.EventDispatchThread.run(EventDispatchThread.java: 121 )
Caused by: java.lang.NullPointerException
at testapp.TestView. < init > (TestView.java: 49 )
at testapp.TestApp.startup(TestApp.java: 19 )
at org.jdesktop.application.Application$ 1 .run(Application.java: 171 )
8 more
BUILD SUCCESSFUL (total time: 2 seconds)
deps - jar:
Created dir: D: " BackUp " My Documents " NetBeansProjects " TestApp " build " classes
Compiling 3 source files to D: " BackUp " My Documents " NetBeansProjects " TestApp " build " classes
Copying 22 files to D: " BackUp " My Documents " NetBeansProjects " TestApp " build " classes
compile:
run:
2008 - 4 - 16 17 : 15 : 39 org.jdesktop.application.Application$ 1 run
严重: Application class testapp.TestApp failed to launch
java.lang.NullPointerException
at testapp.TestView. < init > (TestView.java: 49 )
at testapp.TestApp.startup(TestApp.java: 19 )
at org.jdesktop.application.Application$ 1 .run(Application.java: 171 )
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java: 209 )
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 597 )
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java: 273 )
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java: 183 )
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java: 173 )
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java: 168 )
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java: 160 )
at java.awt.EventDispatchThread.run(EventDispatchThread.java: 121 )
Exception in thread " AWT-EventQueue-0 " java.lang.Error: Application class testapp.TestApp failed to launch
at org.jdesktop.application.Application$ 1 .run(Application.java: 177 )
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java: 209 )
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 597 )
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java: 273 )
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java: 183 )
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java: 173 )
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java: 168 )
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java: 160 )
at java.awt.EventDispatchThread.run(EventDispatchThread.java: 121 )
Caused by: java.lang.NullPointerException
at testapp.TestView. < init > (TestView.java: 49 )
at testapp.TestApp.startup(TestApp.java: 19 )
at org.jdesktop.application.Application$ 1 .run(Application.java: 171 )
8 more
BUILD SUCCESSFUL (total time: 2 seconds)
2.还有个问题是关于 JSF的,是在 Netbeans中文社区里有人提出来的,在NetBeans6.0.1版本中可以实现 组件的自动绑订但是在6.1RC1里就不行了,必须要右键组建选择Add Bingding Attribute 我觉得这应该是一个bug,下面是截图。
我原本以为在NetBeans6.0.1中可以完成的 在NetBeans6.1中应该也是可以完成的,后来自己测试的时候才发现并不是我想象中的那样。
这是NetBeans6.0的官方JSF的教程连接
http://www.netbeans.org/kb/60/web/helloweb_zh_CN.html
用Netbeans6.1RC1做的时候就会出先下面的问题。
注意:下面的 TextField1.gettext();方法中 TextField1是在没有改变IDE自动生成的代码的前提下写的,有兴趣的朋友可以帮忙测试一下!
好了今天就写这么多吧,明天继续写关于学习国际化的内容!