Domanda

I have a JXTable up and running but I would like to render a column as a label or Icon. I already have the code to convert the string value into a label (with a series of icons appended together). I just need to know how to tell the table to render it as such.

Any idea?

Thanks in advance!

È stato utile?

Soluzione

JXTable extends JTable so it's done the same way. If anyone found this just see an example here: http://www.exampledepot.com/egs/javax.swing.table/CustRend.html

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top