tags:

views:

447

answers:

1

I'm trying one sample program for practice and i want to display results of database in JTable. The problem is i have no idea how to do that. I know how to get data from database and display it on text field or console but never tried with JTable. How to do that ?

Consider that i've table which is holding information like person name, age, city and date. i want it to be displayed via JTable. Also is it possible to update the JTable display if i add the option of adding more details in program(i mean adding entries to db then that will show immediately in JTable )?

Any suggestions, pointers on how to proceed is appreciated. Thanks in advance.

+2  A: 

JDBC + JTable @ google:

Macarse
Ok. this is helpful but not answering my query completely. anyway, thanks for the comments.
Rahul