Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to make the generated GUI code from IDEA visible?

I have made an extremely simple project in IntelliJ's IDEA, basically just a form with a JToolBar containing a JButton, and when I try to launch it, I get an NPE in form.$$$setupUI$$$ - but no such thing is reflected in the actual form.java, so I have no way to debug it or track down the bug.

Is there a way to make IDEA show (and maybe even let me change) the 'magically' generated code ?

like image 327
J. Stoever Avatar asked Jul 21 '10 22:07

J. Stoever


People also ask

How do I run an IntelliJ GUI form?

On the main menu, choose File | New. On the pop-up menu, choose GUI Form. Specify the name of the new form, and select the layout manager. Check the option Create bound class, and specify the bound class name.

Does IntelliJ have a GUI builder?

GUI Designer in IntelliJ IDEA enables you to create graphical user interfaces (GUI) for your applications using Swing library components.


1 Answers

Settings | GUI Designer | Generate GUI into | Java source files.

like image 89
CrazyCoder Avatar answered Nov 09 '22 13:11

CrazyCoder