/rcdkjar/src/org/guha/rcdk/view/table/StructureTableCellEditor2D.java

http://github.com/rajarshi/cdkr · Java · 18 lines · 12 code · 3 blank · 3 comment · 2 complexity · f50e9e38119dca1b6c6fa9be1299c88f MD5 · raw file

  1. package org.guha.rcdk.view.table;
  2. import org.guha.rcdk.view.panels.MoleculeCell;
  3. import javax.swing.*;
  4. import java.awt.*;
  5. /**
  6. * @author Rajarshi Guha
  7. */
  8. public class StructureTableCellEditor2D extends StructureTableCellEditor {
  9. public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
  10. if (column != 0) {
  11. return (MoleculeCell) value;
  12. }
  13. return (MoleculeCell) value;
  14. }
  15. }