No "Form Main" option in generate main for class bound to swing form


Hi there,

I created a Swing GUI form with a bound class, and made sure the root JPanel in the form has a field name. Now, in the bound class, I'm trying to use Command-N (I'm on a Mac) to generate the Form Main. However, I don't see this option anywhere. Tried to create a new form and bound class, but the option still wouldn't show up.

Also tried to type the code manually (which I got from but my bound class doesn't have a 'contentPane' field. 

Would appreciate some help.


You need to bind class to a form and then bind root JPanel to a field:

You will see the indicators in the left gutter showing that the class and the field are bound to form components.

Then there will be Form Main in the Generate menu.


I've bound the form:

And the field

But no gutters, and no "form main" in generate menu:


Please share a sample project to reproduce the problem.


Very strange... the exact same project I've shared does not show that option on my machine. Please find below idea.log as requested:



Try to uninstall Multimarkdown plug-in:

If it doesn't help, try disabling other third-party plug-ins as well.

You can also try 2016.1 release:


Thanks so much Serge. I upgraded to 2016.1 and uninstalled Multimarkdown but that didn't help - but then I disabled the Gauge plugin ( and that did the trick!


Please sign in to leave a comment.