private Vector getNextRow(ResultSet rs, ResultSetMetaData rsmd)throws SQLException
{
Vector currentRow = new Vector();
for (int i = 1; i <= rsmd.getColumnCount(); ++i)
{
currentRow.addElement(rs.getString(i));
}
// 返回一条记录
return currentRow;
}
少了一段
{
Vector currentRow = new Vector();
for (int i = 1; i <= rsmd.getColumnCount(); ++i)
{
currentRow.addElement(rs.getString(i));
}
// 返回一条记录
return currentRow;
}
少了一段
table=mg.displayResultSet(con);
JScrollPane jScrollPane1 = new JScrollPane(table);
jScrollPane1.setBackground(Color.white);
jScrollPane1.setBounds(5,120,400,3000);
jp.add(jScrollPane1);
- -补充