The comments.properties File

The comments.properties file is a method of implementing comments for images in which all comments for pictures within a folder are contained in a single file. Many find this easier than having separate files for each comment.

A comments.properties file can be generated in many ways:

  • Use the JAlbum main window (see below) This is by far the easiest way!
  • Using a text editor to directly create the comments
  • Any other way a text file can be generated, such as being the output from a database

The format of a comments.properties file

A comments.properties file is a text file that consists of lines of text that end with a carriage return. The format of each line is ‘image_file_name=desired_comment’. It can be edited with any text-processor. For example, for the image shown in the screenshot, the comments.properties file would have this entry:

IMG_2684.jpg=A gift from Grandma

All the comments for images within a given folder are placed in the same comments.properties file.

Placement of a comments.properties file

A comments.properties file operates at the folder level. That is, the comments.properties file must be placed in the folder of images for which one wishes to provide comments. If the comment editor built in to JAlbum’s Edit tab is used, the comments.properties files are placed in the correct locations.

Using JAlbum to create a comments.properties file

By using the user interface on the JAlbum Main window, one can directly enter comments for each picture and the appropriate comments.properties file will be created and placed in the proper location. Follow these steps:

  • start up JAlbum and select the desired skin (BPP, of course!)
  • Navigate to the desired folder in the left panel
  • double-click on the image you wish to add/edit the comment
  • type the comment desired for the given picture into the ‘Comment’ box
  • move to the next picture using the <Back/Next> buttons
  • as you move from image to image, comment.properties files are being created with the comments entered