UI窗体导出到Eclipse

UI窗体导出到Eclipse

本文介绍了将Intellij-Idea UI窗体导出到Eclipse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Java项目为Class做。所以我决定使用Inltellij-Idea中的Designer来帮助我快速完成窗体和窗口,并且有更多的时间开发应用程序。



我正在面对的问题是老师使用Eclipse的事实,所以我认为在开发结束时,我可以导出我的Intellij-Idea项目(UI和Classes),使其在Eclipse上工作。



导出类没有问题,但是.form文件呢?如何在代码中引用它们,以便eclipse项目可以构建?

解决方案

可以使用文件 | 设置 | GUI Designer | 将GUI生成到中: Java源代码



重建项目,从 .form 文件生成。现在您的应用程序可以在任何IDE中编译。不要忘记在 forms_rt.jar 文件(与项目捆绑)中添加依赖项。使用GUI Designer( IDEA_HOME\redist\forms_rt.jar )需要编译和运行应用程序。


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 ?

解决方案

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).

这篇关于将Intellij-Idea UI窗体导出到Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 20:02