Hi again,
Sorry for delay. I checked the code and run it. I think the problem is that this program is using POP3 and gmail and others require POP3 over SSH.
If you have a gmail account, i recommend you to try the example below first. If it works for you then you can replace the javamail functionality in the client GUI easily.
Java Tips - Connecting GMail using POP3 connection with SSL