Declare and cast the variable c to JLabel:
JLabel c = (JLabel) renderer.getTableCellRendererComponent(...);
The API for DefaultTableCellRenderer will show you that this class in fact derives from JLabel which has the method that you're interested in.