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

发布于 2025-01-02 22:49:30 字数 258 浏览 2 评论 0原文

我从 http://netbeans.org/downloads 下载了包含所有捆绑包的 Netbeans 7.1,并在 Windows 7 上成功安装了它。

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

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

谢谢。

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

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

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

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

恋你朝朝暮暮 2025-01-09 22:49:30

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

支持[B]SAF(JSR 296,基本上是“Java 桌面应用程序”项目模板背后的框架)已突然被删除(没有任何正当理由,让我补充一下)。

然而,正如 Bill 在他的回答中所说,没有必要使用 SAF 来直观地设计表单。 NetBeans swing-designer(称为 Matisse)可用于设计任何 JFrame、JDialog、JPanel 等。

您只需

右键单击 -> 新建 -> JFrame Form...

然后您就可以进行拖放了!

(您将缺少的功能是此类框架提供的额外功能,例如 SAF 操作、窗口持久性、长时间运行任务的简化管理以及相关的视觉反馈[现在您必须亲自使用 SwingWorker 类] , ETC)

Look here: http://netbeans.org/bugzilla/show_bug.cgi?id=204661

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

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.

You just have to

Right click -> New -> JFrame Form...

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

(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)

清晨说晚安 2025-01-09 22:49:30

Java Desktop 是指创建一个标准或库(库)的努力,但从未真正产生过任何有意义的东西。我认为他们最终可能将其从 Netbeans 中删除。

更简单的是,创建一个新的 Java 应用程序项目,而不用担心主项目,然后创建一个新的 JFrame 表单。那个类会有一个main供你使用,你也可以在form中设计框架。您还可以创建 JPanel Form 类。注意:您可以在 Netbeans 中的几乎任何项目中执行此操作,这些项​​目没有什么特别的。

Java Desktop refers to an effort to create a standard or library (libraries) that never really produced anything of significance. I think its likely that they finally removed it from Netbeans.

Its easier to just create a new Java Application project, don't bother with a main, then create a new JFrame Form. That class will have a main for you to use, and you can also design the frame in the form. You can also create JPanel Form classes. Note: you can do this in just about any project in netbeans, there is nothing special about the projects for them.

静水深流 2025-01-09 22:49:30

最好使用NetBeans 7.0来全面支持swing组件。
许多教程和指南都以“Java 桌面应用程序”为特色(例如 JXMapKit 的教程和指南:http://today.java.net/pub/a/today/2007/10/30/building-maps-into-swing-app-with-jxmapviewer.html

its better to use NetBeans 7.0 for full support of swing components.
many tutorials and guides feature the "Java Desktop Application" (like the ones for JXMapKit : http://today.java.net/pub/a/today/2007/10/30/building-maps-into-swing-app-with-jxmapviewer.html )

明媚如初 2025-01-09 22:49:30

您可以找到一些有助于用 Java 创建 CRUD 桌面应用程序的内容。

您可以在此处找到它。

You can find something helpful to create CRUD desktop application in Java.

You can find it here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文