I don't use Macs, so I cant help you there. As for your code, it's difficult to read because you have { and } placed very awkwardly. Keep in mind, with NetBeans, it will show you which braces open...