Forums Register Login
how to put ImageIcon in JTable
Does the DefaultTableCellRender take care of displaying ImageIcon ? My table model has the getColumnClass defined.

nope. but it should be fairly easy to enhance DefaultTableCellRenderer to do so.
Create a class ImageIconRenderer (or whatever) that extends DefaultTableCellRenderer.
Override the setValue method to

Register an instance of your new renderer to render ImagIcons using setDefaultRenderer.
that *should* do the trick !
[ February 25, 2004: Message edited by: Don Kiddick ]

This thread has been viewed 618 times.

All times above are in ranch (not your local) time.
The current ranch time is
Sep 25, 2018 02:44:43.