Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA Can't create GUI Form

Supposedly creating a new GUI form should be a simple matter of right-clicking your project, package or src folder and go New > GUI Form. The problem is I don't have that option. I've created a Java project and it compiles and runs fine.

But the only options I get under New are Java Class, File, Package, HTML File, and JavaScript File.

like image 721
Kleiv Avatar asked Feb 02 '12 19:02

Kleiv


4 Answers

Really old question, but if I got here someone else may as well...

So, step by step:

  1. Make sure that the "UI designer" is enabled:

    File -> Settings -> Plugins -> UI Designer (checked)

  2. The parent (root) folder must be market as "source root"

    Right click on the folder -> Mark Directory as -> Source root

  3. Create a package from the "src" folder:

    Right click on the "src" folder -> New -> Package

  4. Create the new form:

    Right click on the package -> new GUI Form

PS. I'm not sure, but I reckon it's possible to skip the package step...

like image 192
Gus Avatar answered Sep 21 '22 22:09

Gus


Double check that you have UI Designer enabled in Settings | Plugins.

like image 28
CrazyCoder Avatar answered Sep 24 '22 22:09

CrazyCoder


You need the create a package, and after you can create GUI forms.

like image 37
Zoltan Febert Avatar answered Sep 23 '22 22:09

Zoltan Febert


You need to create a package, and have open a class file within the package, and THEN you can create GUI forms. The options in the File -> New menu change depending on what kind of file you are currently editing.

like image 33
Ian Avatar answered Sep 23 '22 22:09

Ian