JTable

1. I need JTable to display data from database table.Is it apropriate component or should I use more suitable class?2. How to add rows to table from code. I.e. I have Vector<> and need add as many rows in table as vector.size() is.
[258 byte] By [BrotherFlamea] at [2007-11-27 7:40:02]
# 1

> 1. I need JTable to display data from database

> table.

> Is it apropriate component or should I use more

> suitable class?

>

Probably appropriate.

> 2. How to add rows to table from code. I.e. I have

> Vector<> and need add as many rows in table as

> vector.size() is.

Read the following especially the part about table models

http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

cotton.ma at 2007-7-12 19:20:29 > top of Java-index,Java Essentials,Java Programming...