Use repaint instead of setLineWrapColumnOrWidth().