netbeans 平台很难遵循吗?
我浏览了 http://platform.netbeans.org/tutorials/nbm -quick-start.html#lookup,但是当我定义依赖项时,它不会立即获取导入语句。出现小感叹号,单击它后,我可以导入界面。本教程的最后一部分无法工作。
该教程是基于旧版本的吗?例如,无法找到 Lookup API,但它位于 Utilities API 内。
我还发现遵循模块化概念非常困难。 Netbeans 平台强制执行如此严格的模块化设计是否有原因?有没有更好的书面教程?
我应该避免使用 netbeans 平台来创建桌面应用程序吗?不使用它会更容易吗?
I went through http://platform.netbeans.org/tutorials/nbm-quick-start.html#lookup, but when I define the dependencies, it doesn't get the import statement immediately. Little exclamation marks appear and upon clicking it, it lets me import the interface. The last part of the tutorial cannot work.
Is the tutorial based on an older version ? For example, Lookup API cannot be found, but instead it's inside Utilities API.
I also find it extremely difficult to follow the modular concepts. Is there a reason why such strict modular design is enforced by netbeans platform ? Are there better written tutorials out there ?
Should I avoid netbeans platform for creating desktop applications ? would it be easier to not use it ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
NetBeans平台是一个很棒的平台,我推荐你阅读《From pain to get》
http://netbeans.dzone.com/news/from- pain-gain-swing-and-netbe
我还建议您阅读 NetBeans 布道者 Geertjan 的博客(stackoverflow 阻止我发布 URL,所以用 google 搜索)。
NetBeans platform is a great one, I recommend you to read the "From pain to gain"
http://netbeans.dzone.com/news/from-pain-gain-swing-and-netbe
I also recommend you to read the blog of Geertjan, a NetBeans evangelist (stackoverflow stops me from posting the url, so google it).
在当前的 6.9 版本中,查找 API 已移至其自己的模块中,并且本教程可能基于旧版本。我同意 Vincent 的观点,即 Geertjans 博客 是 netbeans rcp 相关内容的良好来源。
我已经获得了《富客户端编程:插入 NetBeans 平台》和《Netbeans 平台权威指南》两本书,并且对它们非常满意。第一个更详细地介绍了核心概念,第二个则侧重于现实世界的问题,并为您提供了一个很好的概述和起点。
理解 netbeans 平台的概念肯定需要一些时间,但是一旦您了解了其工作原理的基本知识,它对于任何桌面应用程序来说都是一个非常一致且有用的框架。
开发模块化应用程序始终是一个好主意。快速入门教程有些过度设计,但为了向您展示模块系统的可能性,它必须如此。
在现实世界中,您可以决定是要将应用程序拆分为一堆模块,还是简单地构建一个包含所有代码的大模块。这取决于您的应用程序以及某些代码是否可重用于其他项目。我们大多数开发人员都在构建自己的 com...util 或 org...tools Java 包,并且我们更喜欢将这些包从一个项目转移到另一个项目...
The Lookup API was moved into its own module with the current 6.9 Release and the tutorial is likely based on an older version. I agree with Vincent that Geertjans Blog is a good source for netbeans rcp related stuff.
I've got both the "Rich Client Programming: Plugging into the NetBeans Platform" and "The Definitive Guide to Netbeans Platform" Books and are quite happy with those. The first one is a bit more detailed about the core concepts, the second one focuses on real world problems and gives you a good overview and starting point.
It surely takes some time to understand the concepts of the netbeans platform, but once you got a basic knowledge how things are working, its a very consistent and helpful framework for any desktop application.
Developing modular applications is always a good idea. The quick start tutorial is somewhat over engineered, but it has to in order to show you the possibilities of the module system.
In the real world its up to you to decide wether you want to split you application into a bunch of modules or to simply build one big module with all the code in it. It depends of your application and if some of the code is reusable for other projects. Most of us developers are building our own com...util or org...tools Java Packages and we prefer to carry those from project to project...