exporting Intellij-Idea UI Form to Eclipse

2019-02-06 18:20发布

I have a Java Project to do for Class. So I decided to use the Designer in Inltellij-Idea to help me get the forms and windows quickcly done, and have more time developping the application.

The problem I am facing, is the fact that the teacher uses Eclipse, So I thought that at the end of the developpement I could export my Intellij-Idea project (UI and Classes) to make it work on Eclipse.

I have no problem exporting the classes, but what about the .form files ? how do I reference them in my code, so that the eclipse project could be Buildable ?

1条回答
贼婆χ
2楼-- · 2019-02-06 18:57

You can use File | Settings | GUI Designer | Generate GUI into: Java source code.

Rebuild the project, sources will be generated from the .form files. Now your app can be compiled in any IDE. Don't forget to add a dependency on the forms_rt.jar file (bundle it with the project). It's required to compile and run your application when using GUI Designer (IDEA_HOME\redist\forms_rt.jar).

查看更多
登录 后发表回答