I am adding a JPanel to a JScrollPane. Within the panel, I am running graphics that sometimes go off the screen. I cannot get the scrollbars to work when the graphics are off the screen. I've tried to revalidate and repaint, but that doesn't help.

I appreciate any help anyone can give me.
Thanks.