So, I'm essentially trying to setup my JTable to display only images. I tried searching around, found some examples, and followed to nearly verbatim. Problem is, I don't have any images displayed.
This is what my table looks like:
however, each image is simply a red square, so I should be seeing a sea of red, instead of the above. If I double click on a cell, I see the file path. But, the code I added should have fixed that.
Code for the Table:
Code for my TableModel:
and finally code for my CellRenderer:
My progam hits the "setValue" method (proven with a println), which just confuses me even more, as the setValue should be setting the ImageIcon.
And the forum post where I got most of my help (after reading the
Java Tutorial)
http://www.velocityreviews.com/forums/t126359-jtable-and-renderers.html
Thanks for all the help.