IntelliJ IDEA GUI builder – no Java code generated

2019-01-25 08:20发布

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条回答
Root(大扎)
2楼-- · 2019-01-25 09:11

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.

查看更多
登录 后发表回答