Just started my first project in NetBeans 7.1.2 and this dumb red line was right in the middle of the source code. It is a right margin for aligning your code.
To remove it:
Tools > Options > Editor > Formatting
Set Right Margin to 200
To remove it:
Tools > Options > Editor > Formatting
Set Right Margin to 200




