01: package org.swingml.treetablebrowser.ext;
02:
03: import java.awt.*;
04:
05: import javax.swing.*;
06: import javax.swing.table.*;
07:
08: /**
09: * @author dpitt
10: */
11: public class CellEditor extends AbstractCellEditor implements
12: TableCellEditor {
13:
14: public Component getTableCellEditorComponent(JTable table,
15: Object value, boolean isSelected, int r, int c) {
16: JTextField field = new JTextField();
17: field.setText(value.toString());
18: return field;
19: }
20: }
|