How to use GUI form created in IntelliJ IDEA

Viewed 41274

I'm creating a simple GUI form with one button in IntelliJ IDEA 9. The class which was created with the form is not JFrame or any other swing class. How I can call my form in my source code?

3 Answers

First add private JPanel Main; inside the class. Then, in the form's panel properties, add Main to the field name. Then, go to your class and from the Alt + Insert menu, select Main.

Now, the error wont come.

Related