quick and dirty try (since I know nothing about your code) would be to try repaint() instead of update().