为什么我在 Netbeans 7.1 中找不到 Java 桌面应用程序 [英] Why can't I find Java desktop application in Netbeans 7.1

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

问题描述

我从 http://netbeans.org/downloads 下载了带有所有包的 Netbeans 7.1 并成功安装在视窗 7.

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...

您已准备好进行拖放操作!

and you're ready to drag-and-drop!

(您将缺少的功能是此类框架提供的额外花里胡哨的功能,例如 SAF 操作、窗口持久性、对长时间运行的任务的简化管理以及相关的视觉反馈 [现在您必须亲自动手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 桌面应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆