There is a plugin that will help to switch the line endings. It is 'Show and change line endings'. You can install it directly within NetBeans.
Go to Tools->Plugins->Available Plugins
Then search for it. Check the checkbox and press 'Install' button.