本文介绍了为什么在Netbeans 7.1中找不到Java桌面应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从 http://netbeans.org/downloads 下载了所有捆绑包的Netbeans 7.1,并成功将其安装在Windows7.

I downloaded Netbeans 7.1 with all bundle from http://netbeans.org/downloads and installed it successfully on Windows 7.

但是当像7.0一样添加新项目时,我找不到应该在Java类别下的Java桌面应用程序.

But I can't find Java Desktop Application which should be under Java category when add new project as 7.0 does.

在哪里?或7.1中的替代品是什么?我需要一些东西来通过拖动组件来创建GUI.

Where is it? Or what is the substitute one in 7.1? I need something to create GUI by dragging components.

谢谢.

推荐答案

查看此处: http://netbeans. org/bugzilla/show_bug.cgi?id = 204661

对[B] SAF(JSR 296,基本上是"Java桌面应用程序"项目模板背后的框架)的支持已被突然删除(出于无正当理由,请允许我添加).

Support for [B]SAF (JSR 296, basically the framework that was behind your "Java Desktop Application" project template) has been abruptly dropped (for no valid reason, let me add).

但是,正如Bill在回答中所说的那样,不必使用SAF来可视化设计表单. NetBeans swing-designer(称为Matisse)可用于设计任何JFrame,JDialog,JPanel等.

However, as Bill says in his answer, it is not necessary to use the SAF in order to visually design a form. NetBeans swing-designer (known as Matisse) can be used to design any JFrame, JDialog, JPanel, etc.

您只需要

右键单击-> New-> JFrame Form...

您就可以拖放了!

(您将缺少的功能是该框架提供的额外功能,例如SAF操作,窗口持久化,简化了长期运行的Task的管理以及相关的视觉反馈[现在,您必须动手SwingWorker类]等)

(The features you'll be missing are the extra bells and whistles that such framework provided, like SAF Actions, windowing persistence, simplified management for long running Tasks and related visual feedback [now you have to get your hands dirty with the SwingWorker class], etc)

这篇关于为什么在Netbeans 7.1中找不到Java桌面应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 14:05