I need to list a all the files one by one in a JTable...I am sending you
the code..below..it is displaying only one row with the first 4 files, how
do I get the list of other files into the other rows...pls let me know...

String tableName; // Stores a table name
DefaultMutableTreeNode tableNode; // Stores a tree node for
a table
while(tables.next()) // For each table
{
tableName = tables.getString("TABLE_NAME"); // get the table
name
tableNode = new DefaultMutableTreeNode(tableName);
dbNode.add(tableNode); // Add the node to
the tree

// Get all the columns for the current table
ResultSet columnNames = metadata.getColumns(null, null, tableName,
null);

// Add nodes for the columns as children of the table node
while(columnNames.next())
tableNode.add(
new
DefaultMutableTreeNode(columnNames.getString("COLUMN_NAME")));
}
}