JScrollPane not visible

so I have a JPanel, the JPanel uses a picture as a background. inside the JPanel I would like to put a JScrollPane with a textarea inside it.

The picture shows up, but the scrollpane is not visible. but I know it is there because the cursor changes when I mouse over the textarea.

Why isnt my scrollpane visible?!

[333 byte] By [GooNa] at [2007-11-27 11:00:27]
# 1

read this tutorial about jscrollpane it has examples about using images

http://java.sun.com/docs/books/tutorial/uiswing/components/scrollpane.html

Yannixa at 2007-7-29 12:29:46 > top of Java-index,Desktop,Core GUI APIs...
# 2

> Why isnt my scrollpane visible?!

Line 13 is causing the problem.

If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)",

see http://homepage1.nifty.com/algafield/sscce.html,

that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.

Don't forget to use the "Code Formatting Tags",

see http://forum.java.sun.com/help.jspa?sec=formatting,

so the posted code retains its original formatting.

camickra at 2007-7-29 12:29:46 > top of Java-index,Desktop,Core GUI APIs...