Actually, the F-4 was developed as a Navy-only fighter, that the Air Force was forced to accept by the DoD because of the miserable air to air capabilities of their then current fleet of F-100s, F-105s, F-104s and F-106s. That then current fleet was the result of thinking the next war would be nuclear, and the fighters were not capable in a conventional skirmish, even with the likes of marginal foes like North Vietnam. The F-105 was a day VFR bomber that couldn't turn, the F-104s had many other limitations, and the F-106 was an interceptor that was next to useless against other fighters. And I agree. With over 5000 produced, the F-4 was an excellent plane for it's time.
The Air Force got it's revenge, though. The F-18 Hornet is a reworked YF-17 that unsuccessfully competed against the F-16 in the Air Force lightweight fighter program. Mickey D. worked a deal with Northrop to build the carrier version (since the Navy wouldn't buy aircraft from Northrop before they aquired Grumman), then snookered them out of the entire production run, selling carrier versions to the likes of Canada and Switzerland (who, of course, didn't have carriers).
The JSF looks like the first fighter that is being developed from the start for the Navy, Marines and Air Force that will be accepted by all. I only hope it doesn't experience the cost growth that all other aircraft programs seem to have.