[Bug 16358] Repainting problems in Swing applications