Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Chisisi Massri   on Jan 13 In Java Category.

  
Question Answered By: Adalia Fischer   on Jan 13

first u told me that there is some thing missing, have u made a change or u
added some thing? plz tell aniway i have tested the constructor of JTable which
takes vector  of vectors  to make a table  in a normal application without using
RMI, i faced same prob, but when i tried to display values of returned vector
using following code again in normal java application, i just saw result as i
expected without any error

for (int i = 0; i < vector.size(); i++) {
Vector sub = (Vector) vector.elementAt(i);
String[][] rowData = new String[sub.size()][5];
for (Enumeration e = sub.elements(); e.hasMoreElements(); ) {
rowData[i][j] = e.nextElement().toString();

................................................................
..................................................
.........................................
System.out.print(rowData[i][j] + " ");

so wat i did is simply extracted all the values from vector of vectors in 2-D
string and added in JTable. and shows the output to BOSS, (he never checks my
code :) ).so i get rid of trouble but i know this is not the way, thanks you
very much for giving my prob so much time but plz tel me or refer some easy
tutorial so that i can pick this mess.

Share: