Cannot add form to another - IntelliJ 13.1

Hello everyone,

When I try to add a newly created form in the UI Designer in Community Edition to another form, I always get this message: "Forms added to palette must have a binding for the top-level component". If I add an older form it works.

Way to reproduce: Make two forms, add a component, add one form to the other.

Does this happen to others too, or is something amiss here?

Cheers,
Ulrik

2 comments
Comment actions Permalink

Hello.

Well, probably you need to add the requested binding for the top-level component?

Open the form, select the Form component in UI Designer window, and provide reference to class in "bind to class" field.

Regards,
Alexander.

0
Comment actions Permalink

The class binding was done automatically when I created the form.

It turned out that the binding to the JPanel somehow wasn't written to the form file. I edited the file by hand and added a binding to the outmost <grid>. Now all is fine.

Cheers,
Ulrik

0

Please sign in to leave a comment.