Using a text file to hold configurable values for your application is a great way to provide flexibility without needing to re-compile your code. This tutorial takes you through how to add a properties file to your Java desktop application.
Download source code and art work
(you will need to provide an email address)
As developers we can use a properties file to define values which our code needs access to but which might change when it comes to deployment. This could be the location of resource files, application version numbers or a whole host of other information. Here we are going to build a reusable Class which can be used in our Java programmes anytime we need flexible values.