public interface TableCellEditor extends CellEditor
JListBox , 
       JComboBox , 
       JTree ,或 
       JTable需要实现。 
      | Modifier and Type | Method and Description | 
|---|---|
| Component | getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
              设置编辑器的初始 
              value。 | 
addCellEditorListener, cancelCellEditing, getCellEditorValue, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditingComponent getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
value 。 
           如果编辑器在调用此方法时进行编辑,这将导致编辑器为stopEditing并丢失任何部分编辑的值。 
            返回应添加到客户端Component层次结构中的组件。 一旦安装在客户层次结构中,该组件就可以绘制和接收用户输入。 
table - 要求编辑编辑的JTable ; 
            可以null 
           value - 要编辑的单元格的值; 
            由具体的编辑来解释和绘制价值。 
            例如,如果value是字符串“true”,它可以被渲染为一个字符串,或者它可以被渲染为一个被勾选的复选框。 
            null是一个有效的值 
           isSelected - 如果要使用突出显示单元格,则为true 
           row - 正在编辑的单元格行 
           column - 要编辑的单元格的列 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.