Here you can find the source of setCellRender(JTable table, int columnIdx, TableCellRenderer render)
static public void setCellRender(JTable table, int columnIdx, TableCellRenderer render)
//package com.java2s; //License from project: LGPL import javax.swing.JTable; import javax.swing.table.TableCellRenderer; import javax.swing.table.TableColumn; public class Main { static public void setCellRender(JTable table, int columnIdx, TableCellRenderer render) { TableColumn o = table.getColumnModel().getColumn(columnIdx); o.setCellRenderer(render);/*from www .j a va2 s. com*/ } }