Properties files can be part of our Java applications, for example to store configuration settings. In NetBeans we create a new properties file via File | New File... | Other | Properties File. To add properties we simply open the file and add properties as a key=value pair in the editor. But we can use another method: right-click on the properties file and select Add | Property...:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6sdXUkAS1QXJtperqkighbsIi5SPHVEVQKmml5dT7L42lwfiiIjh4rfdjFh3M-P5jYFdVFXrtAwfoNxNy2p8XBZfYAvz67Cd_RuTcSDXT1xXNqnq8ggbT7yyqpeRF_K6h7AdifbzRZIfJ/s320/prop.png)
NetBeans opens a small dialog window and we can type the name, value and a comment (optional) for the new property. We click on the OK button to insert the property in our file.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuGFTWF5NgJeL1GpMrisNggqXlsxK95F0YbMNHwKPTyL-LNPe_53fEcLoTIKdrhesf6oFQbEE2fdLa9sBKJ4WNdA_Pcv2NYzPJYhUV1ZTaumQlsKUFVXUMlh3xt-ikvx4O29HCV3-VBmVs/s320/prop1.png)
In the Project Navigator we can view all properties in a properties file by clicking on the little arrow in front of the file. We select the property and the editor jumps to right position in the file.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgv6BU3AO2kS8W7fF0wzhuGspuysc9KkWfkey32WbL3nPY7C7ZiNJgTFlzeaw9HB-TRL26Var7bpHIQOB-CTeLIhgc-i9Tt5sktpWg9NcVZWfty0b7yd9w7ubNGfI9SojLe3d__aDyyey_L/s320/prop2.png)