Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to set row data for JTable from ArrayList ?

843806Feb 19 2009 — edited Mar 4 2009
Hi,
I have an ArrayList with custom class objects.
Object propeties are name and value.
I want to display each object as row elements in a JTable with column header as Name and Value.

I have to set this data for JTable after its creation and not at its creation time.
How can i achieve it to display arrayList object data directly in JTable. If its possible please explain with any example, if not then any alternative for this.

Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 1 2009
Added on Feb 19 2009
12 comments
1,876 views