顯示具有 NetBeans 標籤的文章。 顯示所有文章
顯示具有 NetBeans 標籤的文章。 顯示所有文章

2012年5月16日 星期三

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.