I read about 2 ways actually :
-
looping through the resultset
and use a table model . (This is
slower ?) -
netbeans uses other
techniques(which seems a bit
advanced to me) to return the result
in a form of a list and binds the
table with the list . (This doesn’t
create a class which deals with the
database and I can reuse for many
tables ?)
So , are there other ways or APIS that are easier or more efficient or both ? and If not which of those methods is better ?
My two cents worth can be found with the example in Table From Database entry.