从 NetBeans 迁移到 Eclipse 时如何处理 org.netbeans.* 引用
有许多关于将 NetBeans 项目导入 Eclipse 的 SO 线程。我已经成功做到了这一点,但我尚未看到解决的一个问题与 NetBeans 布局管理器有关。自动生成的 NetBeans 代码中包含以下参考内容:
getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
如何才能使这些库可供 Eclipse 使用?另外,这些库是否被合并到构建包中,或者是否期望在运行时平台上找到它们?
There are a number of SO threads about importing a NetBeans project into Eclipse. I have managed to do this, but one issue I haven't seen addressed has to do with NetBeans layout managers. Throughout the auto-generated NetBeans code are references such as:
getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
What can be done to make these libraries available to Eclipse? Also, do these libraries get incorporated into the build package, or are they expected to be found on the runtime platform?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已将 org-netbeans-modules-swingapp.jar 以及 C:\Program Files (x86)\NetBeans 6.5.1\java2\sources\ 添加到 Eclipse 项目的构建路径中org\netbeans\lib\awtextra (您的路径会有所不同)并取得良好的成功。
I've added to my Eclipse project's build path
org-netbeans-modules-swingapp.jar
as well asC:\Program Files (x86)\NetBeans 6.5.1\java2\sources\org\netbeans\lib\awtextra
(your path will vary) with good success.