I've researched this before but didn't built this myself. I found a google project that was really easy to implement:
https://code.google.com/p/java-dictionary-password-validator/wiki/SampleUsage which can be extended with additional dictionaries too: http://wordlist.aspell.net/