This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 103436 [details] Zip of screen shots and editor options See attached images. To reproduce right click on a Java package, select New, JDialog class, use defaults. Hit Shift-Alt-F or Source->Format. Note all the red !'s and badly mangled code. I've also attached my exported editor options.
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/94c6f08a445c
Integrated into 'main-golden', will be available in build *201012010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/94c6f08a445c User: Dusan Balek <dbalek@netbeans.org> Log: Issue #192639: Formatting newly created Swing Classes produces syntax errors - fixed.