}
// Add the new file at the start of the list
newRecentFiles.add(0, loadedFileName);
// Remove the last item from the list if it was a brand new file
if(!alreadyExists) {
newRecentFiles.removeLast();
}
// Store the recent files
for(int i = 0; i < NUMBER_OF_MENU_ITEMS; i++) {
String fileName = (String)newRecentFiles.get(i);
if(fileName != null) {