(MemoryMonitorPanel) Repaint the background from paintComponent instead of the resize event

The resize event happens too late and not often enough, so that the
background was not redrawn often enough. With a simple size check in
paintComponent it is ok.