我从数据库中读取数据,然后都添加到c中,把c在添加到listList list = new ArrayList();
ResultSet rs = Base.executeQuery(sql);
Test c = null;try
{
while (rs.next()) { c = new Test();
c.setId(rs.getString("id"))
c.setName(rs.getString("name"))
list.add(c);}
..............
........
然后,我怎么才能把list中的数据添加到JTable中,还要转化成Vector?求助~。
ResultSet rs = Base.executeQuery(sql);
Test c = null;try
{
while (rs.next()) { c = new Test();
c.setId(rs.getString("id"))
c.setName(rs.getString("name"))
list.add(c);}
..............
........
然后,我怎么才能把list中的数据添加到JTable中,还要转化成Vector?求助~。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货