IntelliJ IDEA Can't create GUI Form
Solution 1
Really old question, but if I got here someone else may as well...
So, step by step:
Make sure that the "UI designer" is enabled:
File -> Settings -> Plugins -> UI Designer (checked)
The parent (root) folder must be market as "source root"
Right click on the folder -> Mark Directory as -> Source root
Create a package from the "src" folder:
Right click on the "src" folder -> New -> Package
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...
Solution 2
Double check that you have UI Designer enabled in Settings
| Plugins
.
Solution 3
You need the create a package, and after you can create GUI forms.
Solution 4
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.
Solution 5
I know this is an old thread, but it still deserves a straight answer. I had to right click the package itself inside the project directories. You cannot use the "file > new" option. So once you create your package, right click the directory you want the files created in, go to new > GUI Form
Kleiv
Updated on July 21, 2022Comments
-
Kleiv almost 2 years
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.
-
Jek almost 7 yearsGood info thanks, any idea what is the reason why we need to mark the parent (root) folder as source root?
-
Gus over 6 yearsI guess it's probably something to do with how IntelliJ organizes itself; not sure though
-
ForeverZer0 over 5 yearsThank you, this was helpful, was missing the marking directory step