Here you can find the source of setCellEditor(JTable table, int columnIdx, TableCellEditor editor)
static public void setCellEditor(JTable table, int columnIdx, TableCellEditor editor)
//package com.java2s; //License from project: LGPL import javax.swing.JTable; import javax.swing.table.TableCellEditor; import javax.swing.table.TableColumn; public class Main { static public void setCellEditor(JTable table, int columnIdx, TableCellEditor editor) { TableColumn o = table.getColumnModel().getColumn(columnIdx); o.setCellEditor(editor);/*from ww w .java2 s .c om*/ } }