Added override for paintComponent