简体   繁体   English

为什么我在Netbeans 8.0中找不到Java桌面应用程序

[英]Why can't I find Java desktop application in Netbeans 8.0

I downloaded Netbeans 8.0 with all bundle from http://netbeans.org/downloads and 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? 或者8.0中的替代品是什么? I need something to create GUI by dragging components. 我需要通过拖动组件来创建GUI。

Thanks 谢谢

You can still use Netbeans GUI components in Netbeans 8.0. 您仍然可以在Netbeans 8.0中使用Netbeans GUI组件。

Create a normal Java Project: 创建一个普通的Java项目:

  1. Select "New Project" on the "File" menu. 在“文件”菜单上选择“新建项目”。
  2. Select "Java" 选择“Java”
  3. Select "Java Application" 选择“Java应用程序”
  4. Fill out the required data and finish. 填写所需数据并完成。

Once the project is created: 项目创建完成后:

  1. Right click in a java package and select "New", then "Other" at the bottom of the menu. 右键单击java包并选择“新建”,然后选择菜单底部的“其他”。
  2. Select "Swing GUI Forms" 选择“Swing GUI Forms”

Then choose the file type (JFrame as an example). 然后选择文件类型(以JFrame为例)。

Netbeans will load the GUI tools for you at that moment. Netbeans将在那时为您加载GUI工具。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM