[lemur] ListBox with images?

Hi is it possible to put images in the Listbox because I would like to have:
a panel with images and a vertical scrollbar.

thanks in advance

1 Like

Not out of the box. I believe the default cell renderer for listbox just calls String.valueOf(object) for its output. You can make your own cell renderer, though.


Yep, you just need to make your own cell renderer that converts from your model to whatever Panel you want.

This is the code that default cell renderer uses:

It should be easy to see how to set an icon/image to the button instead of text.


this looks good :slight_smile:

thnx iā€™m going to try it

edit: its working

1 Like