更新时间:2023-09-18 10:40:16
所以我做了这个有很多比需求更复杂的是。
So I made this a lot more complicated than needs be.
要使它工作,你需要改变你的项目两件事情。
To make it work you need to change two things in your project.
设置 - > GUI设计器 - >生成GUI为: Java源代码code
Settings -> GUI Designer -> Generate GUI into: Java source code
这使得IntelliJ IDEA的添加3种方法为你的表格底部:
This makes IntelliJ IDEA add 3 methods into the bottom of your forms:
如果有遗漏的尝试更改设置后重新编译您的项目。
If they are missing try recompiling your project after you change the setting.
的IntelliJ有一个名为 forms_rt.jar 罐子,我发现矿{IntelliJ IDEA的根目录} \\ lib中。并更名为 forms_rt-13.1.1.jar
Intellij has a jar called forms_rt.jar, and I found mine in {IntelliJ IDEA Root}\lib. And renamed it to "forms_rt-13.1.1.jar"
这需要在编译时到您的项目被列入。如果你像我一样用摇篮,你可以把它复制到{项目的根} / lib和添加一个平面文件存储库,像这样:
This needs to be included during compile time to your project. If you are using Gradle as I did you could copy it to {project root}/lib and add a flatfile repository like so:
repositories {
mavenCentral()
flatDir dirs: "${rootDir}/lib"
}
在你需要把它列入你的Gradle项目文件:
After that you need to include it in your project gradle file:
dependencies {
compile name: 'forms_rt', version: '13.1.1'
}
在,它应该是有可能建立它无论在IntelliJ IDEA的和摇篮
After that it should be possible to build it both in IntelliJ IDEA and Gradle.