Netbeans 6.9 Vertical Line on Screen


Netbeans Problem Overview

I cannot figure out how to remove this vertical line every time I start Netbeans 6.9 and open any file, it's just right there.

Netbeans Vertical Line Screenshot

Netbeans Solutions

Solution 1 - Netbeans

Weew! I found it.

For those experiencing this same problem, I just want to share how I made it disappear. So this vertical line is actually called the Right Margin.

In Mac, it's under

Preferences > Editor > Formatting

In Windows and Ubuntu it's

Tools > Options > Editor > Formatting

and then a zero value for Right Margin. ^^

Solution 2 - Netbeans

After using @Justinn Cribb's answer I wanted to write to add a few details to those who may have problems:

First you have top open your platform specific Editor Options menu:

  • Mac: NetBeans->Preferences->Editor
  • Ubuntu: Tools->Options->Editor
  • Windows: Tools->Options->Editor

Then follow these steps:

  1. Make sure you're in the Formatting Tab.
  2. Change the Language to "All Languages"
  3. Change the Right Margin to 0
  4. Click Apply or Ok


Solution 3 - Netbeans

This can also be set as a project specific option. This is given priority over the NetBeans global option. I've found this useful when working with different coding standards and projects on the same computer.

On Windows, this can be found in:

File > Project Properties > Formatting, select 'Use project specific options', and modify as required.

NetBeans Project Properties (Formatting) dialog

Solution 4 - Netbeans

On windows (NetBeans IDE 8.0.2 ):


Solution 5 - Netbeans

If you just want to hide the line, you can change its color:

Tools > Options > Fonts and Colors > Highlighting > Category > Text Limit Line.

I changed it to transparent.

(Tested in Netbeans 11.2).


All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJustinn CribbView Question on Stackoverflow
Solution 1 - NetbeansJustinn CribbView Answer on Stackoverflow
Solution 2 - NetbeansWallterView Answer on Stackoverflow
Solution 3 - NetbeansDarianView Answer on Stackoverflow
Solution 4 - NetbeansHanaView Answer on Stackoverflow
Solution 5 - NetbeansArturoTenaView Answer on Stackoverflow