Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4280388

BasicTreeUI.startEditing() calls getTreeCellEditorComponent unnecessarily

XMLWordPrintable

    • beta2
    • generic
    • generic



      Name: krT82822 Date: 10/12/99


      The startEditing(TreePath, MouseEvent) method of BasicTreeUI calls
      getTreeCellEditorComponent() method on a cell before determining
      if that cell is editable via a call to isCellEditable(). If
      isCellEditable() returns false, the editor is simply thrown away.

      This is wasteful of resources and causes the getTreeCellEditorComponent()
      method to be robust enough to return a component even if the data
      it is being told to edit is uneditable.

      -------

      10/12/99 eval1127@eng -- verified in current kestrel source.
      (Review ID: 96441)
      ======================================================================

            svioletsunw Scott Violet (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: