0

I have a problem with running my GUI application, when I run my jar file. I get exception:

Exception in thread "main" java.awt.IllegalComponentStateException: contentPane cannot be set to null.
    at java.desktop/javax.swing.JRootPane.setContentPane(JRootPane.java:594)
    at java.desktop/javax.swing.JDialog.setContentPane(JDialog.java:1036)
    at ui.ConnectToServerDialog.<init>(ConnectToServerDialog.java:22)
    at common.Client.main(Client.java:14)

This is the rather common mistake. I read solutions, but everyone writes: "choice java source code option", but it's uncomfortable for me, it fouls my code. I talk about this settings page in IDEA: gui designer settings screenshoot

So, how can I fix the "binary class files option"? I create the dialog using Swing UI Designer in IDEA

0 Answers0