This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JTable question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "JTable question" Watch "JTable question" New topic
Author

JTable question

Phil Perkins
Ranch Hand

Joined: Nov 21, 2000
Posts: 40
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

Joined: May 06, 2000
Posts: 396
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).]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JTable question
 
Similar Threads
JTable
JTable ClassCastException...
JTable not showing data
JTable woes
Adding to JTable