01: package tijmp.ui;
02:
03: import javax.swing.table.DefaultTableCellRenderer;
04: import tijmp.ui.Translator;
05:
06: /** A renderer that turns classes into readable strings.
07: */
08: public class ClassRenderer extends DefaultTableCellRenderer {
09: public void setValue(Object value) {
10: Class<?> c = (Class<?>) value;
11: String text = Translator.translate(c);
12: setText(text);
13: }
14: }
|