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

The spec for com.sun.java.swing.JTable(Vector,Vector) unclear

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      kestrel
    • CPU:
      sparc
    • OS:
      solaris_2.5

      Description



      Name: akC57697 Date: 06/23/98



       The spec for com.sun.java.swing.JTable(final Vector rowData,
      final Vector columnNames) is unclear.
       It does not specify clear what happens when rows's lengthes not equal to
      the length of the columnNames.

      The doc says:
      "
      public JTable(final Vector rowData, final Vector columnNames)

           Constructs a JTable to display the values in the Vector of Vectors,
           rowData, with column names, columnNames.
           The Vectors contained in rowData should contain the values
           for that row. In other words, the value of the cell at row 1,
           column 5 can be obtained with the following code:
           ((Vector)rowData.elementAt(1)).elementAt(5);</pre>
           All rows must be of the same length as columnNames.
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
           @param rowData The data for the new table
           @param columnNames Names of each column
          "

      ======================================================================

      Spoke to Philip Milne about this. He considers this a non-bug for now. He wants to leave it semi-vague until we know better how we will define it. Lowering priority to 5.

      sharon.zakhour@Eng 1999-09-08

        Attachments

          Activity

            People

            Assignee:
            sharonz Sharon Zakhour (Inactive)
            Reporter:
            akuzminorcl Alexander Kuzmin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: