Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Migrating from Netbeans

$
0
0

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

    }

}


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>