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 ]
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards

This thread has been viewed 592 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jun 17, 2018 15:52:58.