为什么我在 Netbeans 8.0 中找不到 Java 桌面应用程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/23986234/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Why can't I find Java desktop application in Netbeans 8.0
提问by user3697928
I downloaded Netbeans 8.0 with all bundle from http://netbeans.org/downloadsand installed it successfully on Windows 8.
我从http://netbeans.org/downloads下载了带有所有捆绑包的 Netbeans 8.0并成功安装在 Windows 8 上。
But I can't find Java Desktop Application which should be under Java category when add new project as 6.5 does.
但是当像 6.5 一样添加新项目时,我找不到应该在 Java 类别下的 Java 桌面应用程序。
Where is it? Or what is the substitute one in 8.0? I need something to create GUI by dragging components.
它在哪里?或者 8.0 中的替代品是什么?我需要通过拖动组件来创建 GUI。
Thanks
谢谢
回答by 414v32
You can still use Netbeans GUI components in Netbeans 8.0.
您仍然可以在 Netbeans 8.0 中使用 Netbeans GUI 组件。
Create a normal Java Project:
创建一个普通的 Java 项目:
- Select "New Project" on the "File" menu.
- Select "Java"
- Select "Java Application"
- Fill out the required data and finish.
- 在“文件”菜单上选择“新建项目”。
- 选择“Java”
- 选择“Java应用程序”
- 填写所需数据并完成。
Once the project is created:
创建项目后:
- Right click in a java package and select "New", then "Other" at the bottom of the menu.
- Select "Swing GUI Forms"
- 右键单击一个 java 包并选择“新建”,然后选择菜单底部的“其他”。
- 选择“Swing GUI 表单”
Then choose the file type (JFrame as an example).
然后选择文件类型(以JFrame为例)。
Netbeans will load the GUI tools for you at that moment.
Netbeans 将在那时为您加载 GUI 工具。