Another attempt to eliminate the bogus repaint exceptions in the GUI.