src/share/classes/javax/swing/JTable.java
Print this page
*** 667,677 ****
* <pre>((Vector)rowData.elementAt(1)).elementAt(5);</pre>
*
* @param rowData the data for the new table
* @param columnNames names of each column
*/
! public JTable(Vector<Vector<Object>> rowData, Vector<Object> columnNames) {
this(new DefaultTableModel(rowData, columnNames));
}
/**
* Constructs a <code>JTable</code> to display the values in the two dimensional array,
--- 667,677 ----
* <pre>((Vector)rowData.elementAt(1)).elementAt(5);</pre>
*
* @param rowData the data for the new table
* @param columnNames names of each column
*/
! public JTable(Vector<Vector<Object>> rowData, Vector<?> columnNames) {
this(new DefaultTableModel(rowData, columnNames));
}
/**
* Constructs a <code>JTable</code> to display the values in the two dimensional array,