I am attempting to have a JcomboBox with a list of ranks to choose but i would like to have a small picture of that rank alongside the text.
I can get the text as an option, i can also get a picture as an option but not both at the same time.
I guess the obvious question is, is it possible in the first place as all the examples i have found appear to have the picture output as effectively a separate window attached to the JComboBox?
The basic idea i have been trying is
The result is
RookieRookie.gif
appears in the JComboBox.i.e. the
string and then the file reference rather than the picture itself.
Any pointers on how this could be achieved would be appreciated.
Thank You.