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

removeColumn(TableColumn column) in class DefaultTableColumnModel is buggy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.1.6
    • 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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: