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

Docs for AbstractTableModel.fireTableChanged() doesn't reflect new behavior.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.3.0
    • docs
    • beta2
    • generic
    • generic



      Name: skT45625 Date: 05/10/2000


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      The method AbstractTableModel.fireTableDataChanged() now clears the selection
      after firing the change. There is nothing in the documentation to describe this
      new behavior. Clearing the selection is a pretty significant change. The
      documentation needs to be clear that this happens. I had to trace through the
      Java Source code to figure out what was really going on. I shouldn't have to do
      that.

      (I'm not sure why you made this change, but I would have preferred getting a new
      method that also cleared the selection, rather than modifying an existing
      method. A lot of my code broke because of this change. There were plenty of
      places where I called this method, certain that the number or rows hadn't
      changed. If I needed to clear the selection, I would have done so on my own.)
      (Review ID: 104658)
      ======================================================================

            sharonz Sharon Zakhour (Inactive)
            skondamasunw Suresh Kondamareddy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: