简体   繁体   English

将Intellij-Idea UI表单导出到Eclipse

[英]exporting Intellij-Idea UI Form to Eclipse

I have a Java Project to do for Class. 我有一个Java项目要为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. 所以我决定使用Inltellij-Idea中的Designer帮助我快速完成表单和窗口,并有更多时间开发应用程序。

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. 我面临的问题是老师使用Eclipse,所以我认为在开发结束时我可以导出我的Intellij-Idea项目(UI和Classes)以使其在Eclipse上运行。

I have no problem exporting the classes, but what about the .form files ? 我没有导出类的问题,但是.form文件怎么样? how do I reference them in my code, so that the eclipse project could be Buildable ? 我如何在我的代码中引用它们,以便eclipse项目可以构建?

You can use File | 您可以使用File | Settings | Settings | GUI Designer | GUI Designer | Generate GUI into : Java source code . Generate GUI intoJava源代码

Rebuild the project, sources will be generated from the .form files. 重建项目,将从.form文件生成源。 Now your app can be compiled in any IDE. 现在您的应用程序可以在任何IDE中编译。 Don't forget to add a dependency on the forms_rt.jar file (bundle it with the project). 不要忘记在forms_rt.jar文件中添加依赖forms_rt.jar (将其与项目捆绑在一起)。 It's required to compile and run your application when using GUI Designer ( IDEA_HOME\\redist\\forms_rt.jar ). 使用GUI Designer( IDEA_HOME\\redist\\forms_rt.jar )时,需要编译和运行应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM