• Post Reply Bookmark Topic Watch Topic
  • New Topic

reading Vector into JTable  RSS feed

 
c orange
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

i am reading contents of a text file into a Vector.
the contents fed into this Vector are also scanned in using the pipe delimiter.
can a Vector be read in groups of say for example, 5's so that
they can be added collectively as a row of 5 into a JTable?
i am having problems creating subsequent rows after a first row is created.
so at the moment, i am able to insert only 1 row of data.(and this comprise only
first 5 data of the Vector)

any advise will be appreciated, it's driving me insane

thank you!
 
c orange
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

spent 3 full days trying to figure this out, didn't manage to.
3hrs immediatelyafter posting the question, finally figured it out.
why is it always like that? sorry for wasting this posting space.

in case anyone faces this same block:
get vector using a count outside of row/column for-loops so as to
traverse along vector values independent of row/col iteration.
works now.



 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!