Java tutorial
//package com.java2s; import javax.swing.JTable; import javax.swing.table.TableCellEditor; public class Main { public static void setTableCellEditor(JTable table, String columnIdentifier, TableCellEditor cellEditor) { try { table.getColumn(columnIdentifier).setCellEditor(cellEditor); } catch (IllegalArgumentException e) { } } }