Migrating from Netbeans

Hi at all,

I would migrate from netbeans to intellij and during my tests I can't build my sample application. Always I received an "Exception in thread "main" java.lang.NullPointerException"

I've seen that in my code there is createUiComponents that I want to delete but always  I received an error that says that there is a custom component in my form....but there isn't !!!

Can anyone help me??

Thanks
Alex

below my simple code !


import javax.swing.*;

/**
* Created by Alex on 03/02/14.
*/
public class testInterfaccia {
    private JPanel panel;
    private JButton button1;
    private JTextArea textArea1;
    private JTextField textField1;
    private JLabel labelTest;
    private JLabel label;
    private JScrollPane myscrollpane;

    public static void main(String[] args) {
        JFrame frame = new JFrame("testInterfaccia");
        frame.setContentPane(new testInterfaccia().panel);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.pack();
        frame.setVisible(true);
    }

    private void createUIComponents() {
        // TODO: place custom component creation code here
    }
}

2 comments
Comment actions Permalink

Hi Alessandro,

Make sure that the form doesn't have components with "Custom Create" property checked.

Sergey

0

Please sign in to leave a comment.