Hi All. Please I need your help.
I have just started work as a Software Engr.
I have a project at hand which includes placing different image icons on a JLabel component depending on which element of a JList is selected.
I used single selection model. I tried using if-else construct to specify which imageicon should be placed on the label if a particular element is selected from the JList, but this did not work. I then commented out the if-else statementst to see if I could get this work. Selection occured but the problem is that only one imageicon is being displayed for whichever element selected.
I have been on this problem for some time now while trying to read up every thing I could find on JList component handling. The deadline for me to come up with the solution to this project is next week, so I need as much help as I can get to come up with the solution.
Any help would be highly appreciated.
Thank you.
KingsKidy.