What you need to do is call setOpaque( false ) three times, first on your text area, then on your JScrollPane, then on the JViewport that the text area is in. Then
you should be able to just add the scroll pane to your image panel and I think it'll work.
Jeff