Java

Moderators: zibadian
Number of threads: 7836
Number of posts: 18235

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Re: Add a row to a JTable Posted by jakewendt on 20 Nov 2002 at 4:53 PM

What I mean is that if you've got a table, like the one below ...

http://java.sun.com/docs/books/tutorial/uiswing/components/example-swing/SimpleTableDemo.java

...and I want to add another person to the list. I suppose you could equate it to adding another record to a database. With JList or JComboBox you can use .addItem or something, but I can't find anything equivalent for a JTable.



: Are you talking of how to add records data to the table ?
: I am asking this because when you add a record into a
: table with columns a row is automaticallt generated to
: add the recods.
:
: Or did I misunderstood ?
:
: bashiro
:
:
: :
: : Is there any way to add a row to a JTable at Runtime? I see that there is an addColumn and a columnAdded method, but nothing for Rows.
: :
: : Anybody got any ideas? I basically just need a multi field list to hold a list of variables and there values.
: :
: : TIA
: : Jake
: :
:
:

Thread Tree
jakewendt Add a row to a JTable on 20 Nov 2002 at 12:16 PM
bashiro Re: Add a row to a JTable on 20 Nov 2002 at 1:43 PM
jakewendt Re: Add a row to a JTable on 20 Nov 2002 at 4:53 PM
bashiro Re: Add a row to a JTable on 21 Nov 2002 at 1:58 PM
jabdulius Re: Add a row to a JTable on 26 Nov 2010 at 2:09 AM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.