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??


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);

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

Comment actions Permalink

Hi Alessandro,

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



Please sign in to leave a comment.