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?
I've added to my Eclipse project's build path org-netbeans-modules-swingapp.jar
as well as C:\Program Files (x86)\NetBeans 6.5.1\java2\sources\org\netbeans\lib\awtextra
(your path will vary) with good success.
精彩评论