Example #1
0
  public Component getTableCellEditorComponent(
      JTable table, Object value, boolean isSelected, int row, int column) {

    // editor = (TableCellEditor)editors.get(new Integer(row));
    // if (editor == null) {
    //  editor = defaultEditor;
    // }
    return editor.getTableCellEditorComponent(table, value, isSelected, row, column);
  }
  public Component getTableCellRendererComponent(
      JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {

    return editor.getTableCellEditorComponent(table, value, isSelected, row, column);
  }