PageRenderTime 36ms CodeModel.GetById 32ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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