Removed warning about raw types in the FindFoci GUI

Updated Java from 1.5 to 1.7

Removed other compiler warnings.
Modified to use the non-deprecated API