O'Reilly logo

NetBeans IDE 8 Cookbook by Rhawi Dantas, David Salter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating file headers

When writing open source software, or closed source software that belongs to a specific company or person, it is very useful to add a header to a file that consists, at a minimum, of the license terms for the file. NetBeans comes preconfigured with the major license terms that can be automatically applied to the beginning of files, but also allows custom headers to be defined.

Getting ready

It is necessary to have a project with valid Java source code in order to define file headers as they are defined on a per-project basis. If you are unsure on how to create a project, please check the recipes in Chapter 1, Using NetBeans Projects. To help follow this recipe, when creating a project, enter UsingHeaders as the project name ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required