Removed unnecessary synchronized from paintComponent