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.
Code generated by the UI design editor is locked in the Java source editor. When the source is formatted using ALT-SHIFT-F, the generated code is not reformatted. The code should conform to the formatting rules that are currently in effect. Reformatting the generated code should remain locked and it should have no effect on program behavior.
Existing GUI Editor generated code indentation is now reformatted whenever a new Event is added to a component, but ALT-SHIFT-F does not reformat it. It seems this would be easy now to make happen. Also, existing GUI Editor generated Event code does not reformat when a new Event is added like the rest, so this needs to fixed for both events that cause reformatting.
I remember using Delphi programming language in the old times, the generated code by the UI design editor wasn't locked at all. I think this way, could be a non complicated way of solution. After all, deleting/modifying incorrectly, anything from the generated code, which affects the visual appearance, just should result to disabling the invoke of the design editor. The remove of a component from the code, should be observed by the design editor.
I use Netbeans 7.0.1, this bug affects me. Event handler code generated from ui designer is unaligned. Actually, my code is to be reviewed for coding standards fitness and it's very inconvenient to use external tools to reformat netbeans-generated source.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss
Still not working in NetBeans IDE Dev (Build 201609120002).