Archive for May 6th, 2008

NetBeans IDE 5.5.1 Swing Layout Extension

Peace be upon you all.

When you try to import your code you used in netbeans IDE 5.5.1 to your Eclipse, you will encounter the following issue :-

Multiple markers at this line
- org.jdesktop cannot be resolved to a type
- org.jdesktop cannot be resolved to a type

NetBeans IDE 5.5.1 uses swing layout extension to build its GUI applications, the code is auto generated, you don’t have the ability to change the auto generated code since the content of the generated method is always regenerated by the form editor.

This is the comment of the auto generated method:

/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/

In order to  import your netbeans code into other IDEs like Eclipse, you must have the swing layout extension. Perform the following steps to let your code runs on eclipse.

1 – Go to the netbeans 5.5.1 IDE in the main project you are in it.

2 – open the Libraries node.

3 – Locate the swing-layout-1.0.jar at the Libraries node. It should be in the netbeans installation folder “platform6\modules\ext”

4 – Copy the swing-layout-1.0.jar to your Eclipse project and add it to your build path.

5 – Run the Eclipse project, it will run normally as you run it from your netbeans IDE 5.5.1.

Regards,

2 comments 6 May 2008


Calendar

May 2008
S M T W T F S
« Apr   Jun »
 123
45678910
11121314151617
18192021222324
25262728293031

Posts by Month

Posts by Category