java awt...if statement not working properly

Printable View