IntelliJ IDEA GUI builder – no Java code generated

夙愿已清 提交于 2019-11-27 17:54:41

问题


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:

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. How do I manually trigger such code generation, so that I can compile the resulting .java file with Maven?


回答1:


Source code is generated on Build | Make. If you build externally, IDEA GUI forms can be compiled from Ant (javac2 task provided with IDEA) or Maven.



来源:https://stackoverflow.com/questions/10482610/intellij-idea-gui-builder-no-java-code-generated

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!