removed repaint() for better performance|Hemanth