简体   繁体   English

IntelliJ IDEA GUI构建器 - 未生成Java代码

[英]IntelliJ IDEA GUI builder – no Java code generated

I have designed my GUI form in the IntelliJ IDEA GUI designer, and selected the radio button in Project Settings → GUI Designer to generate source code instead of .class files, but my .java file with code looks like this: 我在IntelliJ IDEA GUI设计器中设计了我的GUI表单,并选择了Project Settings→GUI Designer中的单选按钮来生成源代码而不是.class文件,但我的带有代码的.java文件如下所示:

public class PovRayEmptyProjectWizardPanelVisual {
    private JTextField textField1;
    private JTextField textField2;
    private JTextField textField3;
    private JButton button1;
}

That's it – no code creating the GUI was generated. 就是这样 - 没有生成创建GUI的代码。 How do I manually trigger such code generation, so that I can compile the resulting .java file with Maven? 如何手动触发此类代码生成,以便我可以使用Maven编译生成的.java文件?

Source code is generated on Build | 源代码在Build |上Build Make . Make If you build externally, IDEA GUI forms can be compiled from Ant ( javac2 task provided with IDEA) or Maven . 如果您在外部构建,可以从Ant(IDEA提供的javac2任务)或Maven编译IDEA GUI表单。

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

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