• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable question

 
Phil Perkins
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How does the constructor for JTable handle Vectors?
For instance, what format would I need to give rowData in order for this constructor to work?
new JTable(Vector rowData, Vector columnName)
 
deekasha gunwant
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi phil,
the rowdata vector contains a number of vectors and each of these vector contains data for a single row.
so if i want to have a table like this

then I'll populate my Vector rowData as

regards
deekasha

[This message has been edited by deekasha gunwant (edited November 22, 2000).]
[This message has been edited by deekasha gunwant (edited November 22, 2000).]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!