Make sure to remove the cover if the frame does not have addNextPaintListener