JTable table = new JTable(); TableCellEditor cellEditor = table.getCellEditor();
JTable table = new JTable(); TableColumn column = table.getColumnModel().getColumn(0); column.setCellEditor(new DefaultCellEditor(new JTextField()));In this example, the first column of the JTable is assigned a cell editor that uses a JTextField object. The package library for javax.swing and JTable is part of the Java Standard Edition (Java SE) package.