I am facing the same problem. Can fuweng or someone else tell me how exactly to resolve the issue. How do I repaint the JFrame when the scrollbar is adjusted?