In the open file dialog if we enter manually a filename that doesn't exist and try to open it, fp throws a java file not found error.