If you are using antialiasing under Linux you may experience very bad scrolling in editor (occurs only with some graphical cards). Try to turn off the antialiasing in Tools | Options | Editing | Editor Settings | Text Antialiasing, it will help a lot.

Source: NetBeans User FAQ