Hello
I have a class that implements TableCellRenderer.
TableCellRender interface has only one method:
getTableCellRendererComponentender (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
and this method accepts JTable as null - http://download.oracle.com/javase/1.3/docs/api/javax/swing/table/TableCellRenderer.html.
Why can JTable be null?
When I run my program, in the getTableCellRendererComponentender method I execute
this.size = table.getColumnModel().getColumn(column).getWidth();
But this code is unsuccessfull because table is null.
The table is in fact defined but I don't know why is not passing as parameter to getTableCellRendererComponentender .
Thank you.