2012年3月8日 星期四

NetBeans 建立 desktop application

參考來源
--
1) File->New Project->Java->Java Application
2) Project Name: test1

This gives me my project with my chosen name.
Next I right click on the project and

3) New -> JFrame Form..
4) Finish

This gives me a JFrame with the default name of NewJFrame, with a main program, which means I can start from it. Now I've got 2 files: Test2.java and NewJFrame.java.
Here is the trick:

5) Right click on Test2.java and delete it
6) Right click on NewJFrame and refactor it, Rename it to Test2.

You now have an application just like you are used to. 

沒有留言:

張貼留言