IntelliJ IDEA Unable to create GUI form

Presumably creating a new GUI form should be a simple matter of right-clicking the folder of your project, package or src and go to New> GUI Form. The problem is that I do not have such an option. I created a Java project and it compiles and works fine.

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

+6
source share
7 answers

Double check that UI Designer is enabled in Settings . Plugins

+15
source

Really old question, but if I get here, maybe someone else ...

So, step by step:

  • Make sure "Interface Designer" is enabled:

    File → Settings → Plugins → Interface Designer (checked)

  • The parent (root) folder must be marketed as the "source root"

    Right-click on the folder → Mark directory as → Root source

  • Create a package from the src folder:

    Right-click the src folder → New → Package

  • Create a new form:

    Right click on package -> new GUI form

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

+8
source

You need to create a package after creating the GUI forms.

+5
source

You need to create a package and open the class file in the package, and THEN to create GUI forms. The options in the File → New menu change depending on which file you are currently editing.

+4
source

I know this is an old thread, but it still deserves a direct answer. I needed to right-click on the package itself inside the project directories. You cannot use the file> new option. So, as soon as you create your package, right-click on the directory in which you want the files to be created, go to new> GUI Form

+2
source

In the latest version it is like this:

Image

+1
source

I had this problem and the only change I needed to make was to use one word in the input fields for the New GUI Form dialog box. When I tried to click the OK button, error messages or warnings did not appear, just nothing happened. Probably a pretty obvious thing, but worth sharing if someone comes across this.

0
source

Source: https://habr.com/ru/post/1394462/


All Articles