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.
According to issue 180156 blank lines are supposed to be added and removed from the last class in a java file when there is nothing after it. This does not work in v7.3 Workaround: Add or remove desired blank lines manually. Product Version: NetBeans IDE 7.3 (Build 201302132200) Java: 1.7.0_17; Java HotSpot(TM) 64-Bit Server VM 23.7-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Actually, I think this should be a separate setting so one can choose to add or remove blank lines at the end of a file separate from the After Class setting. I think I would rather have it not work at all than use the current After Class setting.
This seems to be working in NetBeans 7.3.1 and later.