how can i display the database data to an jtable(dynamic) in the swings!

Posted by harish0510 on Stack Overflow See other posts from Stack Overflow or by harish0510
Published on 2010-05-03T09:02:38Z Indexed on 2010/05/03 15:58 UTC
Read the original article Hit count: 156

Filed under:
|
|
|

we are using hibernate in business layer,but the task is, by using the jtable in swings to display the dynamic data(swings) from the database. code:

Criteria criteria=session.createCriteria(User.class);

//here user.class is pojo class in hibernate.

List studentlist= criteria.list();

System.out.println("records"+studentlist);

here the data is showing in hibernate console, but how to represent that data in the format of "jtable".

© Stack Overflow or respective owner

Related posts about swing

Related posts about java