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

javax.swing.JTable spec contains a few vaguenesses

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b53
    • CPU:
      generic
    • OS:
      generic

      Description

      1) in spec for method public int convertRowIndexToModel(int viewRowIndex) is written:
      "Throws:
          IndexOutOfBoundsException - if sorting is enabled and passed an index outside the range of the RowSorter"

       "index outside the range of the RowSorter" - it is not clear how index may be outside the range of the RowSorter?

      2) in spec for method JTable.sorterChanged is written:

      "public void sorterChanged(RowSorterEvent e)

          RowSorterListener notification that the RowSorter has changed in some way."

      It is not clear in what exactly way RowSorter should be changed. For example, if TableRowSorter.setTableModel is invoked, will sorterChanged() be invoked (once or twice with different e)? May be it is possible to clarify this description?

        Attachments

          Activity

            People

            Assignee:
            svioletsunw Scott Violet (Inactive)
            Reporter:
            ynovozhi Yulia Novozhilova (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: