NullPointerException in $$$setupUI$$$

I have a very simple starting plugin project with one project component
and one GUI Form that contains a JPanel with a JLabel.

It's all very simple, but when I try to create an instance of the form
in the projectOpened() method I get a NullPointerException in the forms
hidden $$$setupUI$$$ method.

What are the possible causes for this, is there any way I can see what
code gets generated in there?

Thanks,
Jeff

Software Architect
www.popjax.com

2 comments
Comment actions Permalink

Hello Jeff,

I have a very simple starting plugin project with one project
component and one GUI Form that contains a JPanel with a JLabel.

It's all very simple, but when I try to create an instance of the form
in the projectOpened() method I get a NullPointerException in the
forms hidden $$$setupUI$$$ method.

What are the possible causes for this, is there any way I can see what
code gets generated in there?


You can go to Settings | GUI Designer and enable source code generation for
the UI Designer forms. Then you'll see where the exception happens.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Dmitry Jemerov wrote:

>

You can go to Settings | GUI Designer and enable source code generation
for the UI Designer forms. Then you'll see where the exception happens.

Excellent! That's just what I needed, it pointed out my problem right away.

Thanks,
- Jeff

0

Please sign in to leave a comment.