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 a class

One of the most repetitive tasks in software development is creating classes. Once again, with NetBeans wizards, creation of classes is very easy and straightforward.

Getting ready

It is necessary to have a project in order to create a class; so, if you are unsure on how to do this, please check the recipes in Chapter 1, Using NetBeans Projects. To help follow this recipe, when creating a project, enter CreatingClasses as the project name. When creating the project, ensure the Create Main Class option is not selected.

How to do it…

When the Projects explorer shows the CreatingClasses project, expand the CreatingClasses node if not yet expanded and perform the following steps:

  1. Right-click on the CreatingClasses project, and select ...

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