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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.5
    • 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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: