if (!table.isEditing() && table.isEnabled()) { int r = table.getSelectedRow(); int c = table.getSelectedColumn(); if (table.isCellEditable(r, c)) table.editCellAt(r, c); }
    public void keyTyped(KeyEvent event)    {      // Key events should be handled through the InputMap/ActionMap mechanism      // since JDK1.3. This class is only there for backwards compatibility.    }