removeColumn(TableColumn column) in class DefaultTableColumnModel is buggy

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.4.0
    • Affects Version/s: 1.1.6
    • Component/s: client-libs
    • merlin
    • generic
    • generic



      Name: dbT83986 Date: 03/17/99


      Method removeColumn(TableColumn column) in
      class DefaultTableColumnModel has the following java-code snippet:

       // Post columnAdded event notification. (JTable and JTableHeader
       // listens so they can adjust size and redraw)
       fireColumnRemoved(new TableColumnModelEvent(this,
      getColumnCount() - 1, 0));

      Instead of "getColumnCount() - 1" there should be index of
      the removed column!
      This may be a typical copy and paste error by copying code
      from the addColumn method.
      (Review ID: 54135)
      ======================================================================

            Assignee:
            Philip Milne (Inactive)
            Reporter:
            Dave Blair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: