After creating and adding a project with Subversion the next step is to send the code and file modifications to it.
For this recipe we will need a Subversion server or an account from some Subversion provider, such as Sourceforge.
Configuring NetBeans accordingly to work with Subversion and a Java project are necessary for this recipe.
For explanations on how to create a Subversion account on Sourceforge and add a project to Subversion, refer to the Getting Ready section in the beginning of this chapter.
This recipe can also be used with a previously created project, in the case of on-going development.
Carry out the following steps in order to delete NBCookbookSVN.java
:
Right-click on the
.java
file and select Delete.On the Delete dialog check Safe Delete and click on Refactor.
In order to add a new class you will have to execute the following steps:
Right-click on the Sources Package, select New and Java Class....
On the New Java Class dialog...