How to set background image to JList?

Hi all, I have added JList to scrollpane and added it to a panel. I want to set a background image for JScrollpanearea(or for JList).
[148 byte] By [javamaheshba] at [2007-9-19]
# 1
Take a look here there are lots of good swing examples including the one you need. http://www.codeguru.com/java/articles/449.shtml
JustLeea at 2007-7-8 > top of java,Archived Forums,Swing [Archive]...
# 2

Doesn't anyone know how to use the search facility?

I used the keywords - +background +image - taken from your question to do a search.

The second thread displayed contains a link to a thread that shows you how to add an image to a jtextarea. I would guess the code could be adapted for a jlist.

camickra at 2007-7-8 > top of java,Archived Forums,Swing [Archive]...
# 3

Just because there is already an answer in the archives is no reason to not answer the question again. The whole point of this forum is to help each other out. Nobody is forcing you to reply. If it bothers you that much you don't have to answer the question. I agree that a lot of these questions can be found in the archives, but really who cares if they are reposted. It just dosn't matter.

JustLeea at 2007-7-8 > top of java,Archived Forums,Swing [Archive]...
# 4

Of course nobody forces me to reply. I want to help people who truly have taken the time to read the API, read tutorial and search the forum.

I find a lot of my time is wasted opening up a thread to read a question that has been answered before which is why I get frustrated.

Maybe you have heard the expression, "Give somebody a fish and they will eat for a day, teach somebody to fish and they will eat for life".

By giving people answers you are encouraging them to be lazy.

By pointing out that the forum has a search facility, I am giving them the ability to learn on their own.

"I agree that a lot of these questions can be found in the archives, but really who cares if they are reposted. It just dosn't matter."

Of course it matters. As the forum gets filled with the same question over and over again, it becomes harder to search as you get hundreds of matches instead of tens of matches. People won't spend the time to read hundreds of threads so they simply post a new thread.

"The whole point of this forum is to help each other out."

Agreed, but...see this link

http://www.tuxedo.org/~esr/faqs/smart-questions.html

camickra at 2007-7-8 > top of java,Archived Forums,Swing [Archive]...
# 5

I understand your point about the forums getting filled up... but you apparently had no problem finding a solution to this question in the forum hence your first post on the simplicity of the doing a search.

>...By giving people answers you are encouraging them to be lazy.

>..By pointing out that the forum has a search facility, I am giving them the ability to learn on their own.

Not really your just pointing them to someone elses answer not giving them the ability to learn on thier own.

JustLeea at 2007-7-8 > top of java,Archived Forums,Swing [Archive]...