Revert "no more repaint for swing"

This reverts commit b2e069044706b1c3b402c05a405d4e7dd60f653d.