JList in NetBeans 7.0
Im new in using java ,i hope u will help me to solve my problem.
Im using JList in my JFrame, what i want to do is when i click item 1 in the JList it will change the image in a label i post it beside the JList , every time i click differant item should select another image,
what i did is
in the label properaties i select the icon and i upload some images after that i set the label
whenever i select the item from the JList it will make the label visable , maybe my way is wrong
Could u please help me to that in a correct way
Read the API for JList and follow the link to the Swing tutorial on How to Use Lists. Also go through the other sections of that tutorial.e.g. How to Use Icons.
Apart from that, to get better help sooner, you can post a SSCCE that clearly demonstrates your problem. Note that the first S stands for Short, and that ugly IDE-generated code isn't likely to get many helpful responses.
Thank you for your replay..
But sorry i didnt understand what you mean about API ..
Thanks again and sorry for disturbing you
Java SE 6 API
Bookmark it. You'll need it often.
thank u soo much , i will read it