Java Program: Web Album

Description:

A program to help edit, update and create the config files for the web albums. Use cocoa for the gui, but java for the actual programming language. There needs to be the ability to both browse a set of albums, edit album groups (Folder), edit an individual album (File), and view the pictures. The structure of folders is /FolderSet/FileSet/Pics/Images. In the Folder, File, and Pics level there is an info.ini file that holds the config code for each part. The Images folder contains all the images to be displayed. These config files and pictures are then put together by a series of php scripts into http to be displayed in a web browser.

Criteria:

  • Browse a project
    • Ability to pick the root level to start from
    • A listing of all files in each folder
    • When a folder is selected clicking edit will open the config file to be modified
  • Browse a set of Albums (Folder)
    • Ability to set the title for the set
    • Field wherein the description of the set can be entered
    • List of sub Folders and Files
    • Ability to edit the name, thumbnail, description, and whether this is a Folder or File
    • Button to remove a selected File or Folder
    • Button to save the edited config file
    • Button to scan the Folder for missing Folders or Files
    • Button to revert to the last saved config file
  • Browse a set of Pictures (File)
    • Ability to set the title for the set
    • Field wherein the description of the set can be entered
    • List of pictures in the set
    • Ability to edit the name, thumbnail, description of the picture
    • Button to remove a selected picture
    • Button to save the edited config file
    • Button to scan the set for missing pictures
    • Button to revert to the last saved config file
    • Ability to double click a picture and get it in a new window where one can resize and view it up to the full size
  • Config file must have secific and uniform formating
    • First line flags the type of config file (File or Folder)
    • Second line gives the location of the file being edited
    • The next two lines give the title and description of the File or Folder
    • File sets
      • picName.jpg = "Name of Picture"
      • picName.jpg.hasDescription = true (The picture has a description, used to help format when drawing the pictures layout)
      • picName.jpg.Description = "Description of the file "
      • picName.jpg.Date = 01/01/2000 (Date picture was created)
    • Folder sets
      • FolderName.isAlbum = false (is this a Folder or File)
      • FolderName.title = "Title of Folder"
      • FolderName.description = "Description of Folder "
      • FolderName.pic = "/Pics/Images/thumbnailToUse.jpg"

Conclusion:

I was finding editing the config files for the picture albums getting tedious. It was also hard to keep track of the locations and formatting for the different options I wanted. So over a couple of months I came up with this. It took a lot more work than what I initially thought it would, largely due to my decision to use java but with cocoa for the gui. As I quickly learned, it was possible to do, but the documentation was very sparse and random weird errors loved to crop up for no reason. Until I polish off this project a bit more, and get the php side set up in a manor I like, this program is closed source. If you would like to get more information on methods and code used please contact me directly.

Links:

Comments: [Add a Comment]

On 2007-10-29 03:57:50 DRN commented:

Broken link fixed!

On 2007-10-22 11:56:29 A commented:

Got a 404 for: http://dr-eagleeyes.com:7000/Files/WebAlbum/WebAlbum.zip

Creative Commons License   This webpage and all of its contents are licensed under a
Creative Commons License by Dr-EagleEyes.com.