• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Is JTable dynamic (-urgent-) ?

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I want to insert some data from a txt-file in a table. If I use the object[][] I must know what data I have to insert there. How can I insert data to the table when I don't know how many cols I have?
Please help, thanks!
[This message has been edited by Brain Tenner (edited December 14, 2001).]
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
do you mean how many rows you have? if you do simply call the getRowCount() function of jtable to find out how many r already there. Jtable is dynamic and all u have to do is add an item using the addElement method from the default table model.
------------------
sean's software tips
 
reply
    Bookmark Topic Watch Topic
  • New Topic