請先下載安裝 netbeans
--
本範例使用 NetBeans 開發工具
底下共8張圖,是很基本的設計
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.
--
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.
訂閱:
文章 (Atom)







