Implementing Condition within paint() method is not working

Printable View