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

JTable.processKeyBinding method: delivery of null EventObject at editCellAt

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 1.4.0, 1.4.1, 1.4.2
    • client-libs
    • b48
    • generic, x86
    • generic, windows_xp

      Name: jk109818 Date: 04/22/2003


      FULL PRODUCT VERSION :


      A DESCRIPTION OF THE PROBLEM :
      at JTable class, processKeyBinding method:
      delivery of null EventObject at
      AbstractCellEditor class, in isCellEditable method

      The bug occurs because at line 3279 of the JTable.java file there is call to the editCellAt(int row, int column) instead of editCellAt(int row, int column, EventObject event)

      the result is that there can't be any verification of what type of KeyEvent occured (or even if a KeyEvent occured) at any class derived from AbstractCellEditor implementing the isCellEditable(EventObject event) method.

      By changing at line 3279 the code from
      if (!editCellAt(anchorRow, anchorColumn)) {

      at

      if (!editCellAt(anchorRow, anchorColumn, e)) {

      could solve this bug.



      REPRODUCIBILITY :
      This bug can be reproduced always.
      (Review ID: 182710)
      ======================================================================

            svioletsunw Scott Violet (Inactive)
            jkimsunw Jeffrey Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: