getSelectedRow() in JTable returns 0 when there are no rows in the table

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.1.5
    • Component/s: client-libs



      Name: rk38400 Date: 04/11/98


      getSelectedRow() should return -1 when there are no rows in the table.
      Right now returns 0, which is wrong because implies that row 1 is selected and
      the table is empty.

      JDK 1.1.5
      Swing 1.0.1
      Windows NT
      (Review ID: 26382)
      ======================================================================

            Assignee:
            Tom Santos (Inactive)
            Reporter:
            Ralph Kar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: