相关疑难解决方法(0)

如何正确构建IntelliJ的罐子?

我有一个包含单个模块和一些依赖项的项目.我想在一个单独的目录中创建一个包含已编译模块的jar.另外,我希望我的模块旁边有依赖项.

无论我如何扭曲IntelliJ的"构建jar"进程,我模块的输出都显示为空(除了META-INF文件).

java build-process jar intellij-idea

483
推荐指数
7
解决办法
54万
查看次数

IntelliJ idea gui designer + maven

我有一个在GUI设计器的帮助下创建的项目.这是主要形式的代码.

public class MainForm {
    MainForm() {
        directLineOkButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent arg0) {
               //some action
                }
            }
        });
        crossLineOkButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent arg0) {
               //some action
        });
        clearButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent arg0) {
            //some action
        });
        cancelButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent arg0) {
            //some action
        });
        saveButton.addActionListener(new ActionListener() {
           public void actionPerformed(ActionEvent arg0) {
          //some action
        });
    }

    public JPanel getMainPanel() {
        return mainPanel;
    }

    private void createUIComponents() {
        drawingPanel = new DrawingPanel(); …
Run Code Online (Sandbox Code Playgroud)

java gui-designer intellij-idea nullpointerexception maven

17
推荐指数
3
解决办法
8830
查看次数

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

我在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;
}
Run Code Online (Sandbox Code Playgroud)

就是这样 - 没有生成创建GUI的代码.如何手动触发此类代码生成,以便我可以.java使用Maven 编译生成的文件?

java user-interface code-generation intellij-idea gui-builder

13
推荐指数
1
解决办法
8385
查看次数