Intellij (Swing) GUI not compiling because of Gradle

后端 未结 4 2211
被撕碎了的回忆
被撕碎了的回忆 2020-12-18 16:13

I have a Gradle project and I am trying to create a GUI (Swing, using Intellij); however, I keep receiving an error on compile. The exact same GUI code can be run on a stand

4条回答
  •  隐瞒了意图╮
    2020-12-18 16:46

    This seems to be an issue between Gradle and Intellij. A solution is to migrate to Maven. The .form file (generated by Intellij) for the GUI should be initialised at the line frame.setContentPane(new ApplicationGUI().rootPanel); but this does not happen. There are no issues when using Maven.

提交回复
热议问题