• Post Reply Bookmark Topic Watch Topic
  • New Topic

Populate a JTable from Database  RSS feed

 
Kumar Karunakaran
Greenhorn
Posts: 3
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Friends,

I'm working with an application where I've to show the reports in JTable. I've to fetch the data from the database and show it in a JTable. Here I need help of how to do pagination as well. The JTable is placed in a JPanel inside a JFrame. Kindly give me some sample codes if possible. It is pretty urgent.

Regards

Sincerelibran
 
Rob Spoor
Sheriff
Posts: 21048
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kumar Karunakaran wrote:It is pretty urgent.

Please EaseUp. There is no such thing as urgent around here.
 
Rob Camick
Ranch Hand
Posts: 2787
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It can't be that urgent since you haven't searched the forum for answers. There are many answers to this question in the forum.

Also, your question doesn't even tell us what your problem is:

a) do you know how to use SQL to do a query?
b) do you know how to create a JTable?
c) do you have some other problem?

Solve each problem individually and put the two solutions together an you have your answer.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!