Results 1 to 5 of 5
Thread: JList in NetBeans 7.0
- 07-22-2011, 12:30 PM #1
Member
- Join Date
- Mar 2011
- Posts
- 3
- Rep Power
- 0
JList in NetBeans 7.0
Hi,
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
isVisable(false);
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
- 07-22-2011, 01:37 PM #2
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.
db
- 07-26-2011, 12:57 PM #3
Member
- Join Date
- Mar 2011
- Posts
- 3
- Rep Power
- 0
Thank you for your replay..
But sorry i didnt understand what you mean about API ..
Thanks again and sorry for disturbing you
- 07-26-2011, 01:31 PM #4
Java SE 6 API
Bookmark it. You'll need it often.
db
- 07-26-2011, 05:12 PM #5
Member
- Join Date
- Mar 2011
- Posts
- 3
- Rep Power
- 0
Similar Threads
-
Adding to JList with Netbeans
By kewlgeye in forum NetBeansReplies: 7Last Post: 03-28-2012, 07:39 PM -
Populating a JList from a text file - Netbeans
By Ben1 in forum AWT / SwingReplies: 1Last Post: 01-13-2011, 03:30 PM -
Link one JList to another JList
By mib1bee in forum AWT / SwingReplies: 1Last Post: 12-31-2010, 07:10 PM -
Link one JList to another JList
By mib1bee in forum Advanced JavaReplies: 1Last Post: 12-30-2010, 06:35 PM -
Link one JList to another JList
By mib1bee in forum New To JavaReplies: 1Last Post: 12-30-2010, 06:24 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks